Tailwind CSS v3 color

Tailwind sky-300 #7DD3FC

Tailwind CSS v3's sky-300 is #7DD3FC. It is a pale soft blue in the blue family. In OKLCH it sits at lightness 0.828, chroma 0.101 and hue 230.3°. The nearest CSS named color is lightskyblue (#87CEFA), ΔE2000 2.8 away.

Relative luminance
0.5798
OKLCH L · C · h
0.828 · 0.101 · 230.3
Best text
Black 12.59:1
Hue family
Blue

#7DD3FC color codes

HEX
#7DD3FC
RGB
rgb(125, 211, 252)
HSL
hsl(199, 95%, 74%)
OKLCH
oklch(0.828 0.101 230.3)
OKLab
oklab(0.828 -0.065 -0.078)
CIELAB (D65)
L* 80.72, a* -15.13, b* -28.07
XYZ (D65)
X 49.32, Y 57.97, Z 100.67
CMYK (naive)
cmyk(50%, 16%, 0%, 1%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #7DD3FC accessible?

Black text on it reaches 12.59:1, passing AAA. White text fails at 1.66:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    12.59:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +74
  • White text on it

    1.66:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −32
  • As text on black

    12.59:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −73
  • As text on white

    1.66:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +29

Nearest versions that pass 4.5:1

  • For text on white

    #227FA5 4.51:1

    Darkening its OKLCH lightness from 0.83 to 0.56 reaches 4.51:1 on white, keeping the hue.

  • For text on black

    #7DD3FC 12.59:1

    It already reaches 12.59:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #7DD3FC live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #7DD3FC

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #7DD3FC sits at step 300.

  1. 50#EAF8FF
    White
    1.08
    Black
    19.36
  2. 100#D4F0FF
    White
    1.18
    Black
    17.70
  3. 200#A6E1FF
    White
    1.41
    Black
    14.83
  4. 300This color#7DD3FC
    White
    1.66
    Black
    12.59
  5. 400#59ADD4
    White
    2.51
    Black
    8.35
  6. 500#3891B7
    White
    3.55
    Black
    5.90
  7. 600#19799E
    White
    4.91
    Black
    4.27
  8. 700#006181
    White
    6.93
    Black
    3.02
  9. 800#00465F
    White
    10.28
    Black
    2.04
  10. 900#002D3F
    White
    14.51
    Black
    1.44
  11. 950#001925
    White
    18.01
    Black
    1.16

Under each step, white and black text on it; a bold figure passes 4.5:1.

Tailwind CSS v3 sky scale

The real Tailwind palette, for comparison with the computed ramp above.

  1. 50#F0F9FF
    White
    1.06
    Black
    19.69
  2. 100#E0F2FE
    White
    1.14
    Black
    18.30
  3. 200#BAE6FD
    White
    1.32
    Black
    15.82
  4. 300This color#7DD3FC
    White
    1.66
    Black
    12.59
  5. 400#38BDF8
    White
    2.14
    Black
    9.80
  6. 500#0EA5E9
    White
    2.77
    Black
    7.57
  7. 600#0284C7
    White
    4.09
    Black
    5.12
  8. 700#0369A1
    White
    5.93
    Black
    3.53
  9. 800#075985
    White
    7.56
    Black
    2.77
  10. 900#0C4A6E
    White
    9.45
    Black
    2.22
  11. 950#082F49
    White
    13.87
    Black
    1.51

Gamut

How vivid #7DD3FC can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.107; #7DD3FC uses 95% of it. Display P3, which many recent phones and laptops show, reaches 0.116 there: 9% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.101
sRGB edge
0.107
Display P3 edge
0.116
Rec. 2020 edge
0.118
Dominant wavelength
483 nm
Excitation purity
32%
Chromaticity
x 0.2371, y 0.2788
  • This color#7DD3FC
  • Most vivid in sRGB#77D4FF
  • Most vivid in Display P3oklch(0.828 0.116 230.3)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #7dd3fc;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.5321 0.8236 1); }
}

Mixing

Mixing #7DD3FC

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#BEE9FE
  • OKLab50%#C1EAFE
  • OKLCH50%#C1EAFE

Black #000000

  • sRGB50%#3F6A7E
  • OKLab50%#2C5162
  • OKLCH50%#2C5162

Its complement #FCB38A

  • sRGB50%#BDC3C3
  • OKLab50%#C6C6C6
  • OKLCH50%#E4B1EF
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #7dd3fc, white);
color: color-mix(in oklch, #7dd3fc 50%, white);

In use

#7DD3FC in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:112.59:1 Passes
  • Link and body-size textText, 4.5:11.66:1 Fails
  • Large headingLarge text, 3:11.66:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.66:1 Fails

For text on this page, the nearest shade that passes is #227FA5 4.51:1

Dark page

  • Button labelText, 4.5:112.59:1 Passes
  • Link and body-size textText, 4.5:111.23:1 Passes
  • Large headingLarge text, 3:111.23:1 Passes
  • Icons, borders and focus ringsNon-text, 3:111.23:1 Passes

Color vision

How #7DD3FC looks with color blindness

Achromatopsia changes it most, ΔE2000 19.6; deuteranopia changes it least, 14.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #BED0FE ΔE2000 15.4

    Distinct

    Reads as pale muted blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #ACC2FB ΔE2000 14.8

    Distinct

    Reads as light muted blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #33DEE0 ΔE2000 15.9

    Distinct

    Reads as pale soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #C8C8C8 ΔE2000 19.6

    Distinct

    Reads as light gray

Pairing check

Checked against its complement, #FCB38A. Their lightness contrast is only 1.05:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#7DD3FC · #FCB38A42.7Stays distinct
Protanopia#BED0FE · #C7BA8736.4Stays distinct
Deuteranopia#ACC2FB · #D8CA8A41.6Stays distinct
Tritanopia#33DEE0 · #FFA6A851.7Stays distinct
Achromatopsia#C8C8C8 · #C3C3C31.3Easily confused

Harmony

Color harmonies for #7DD3FC

Its complement is #FCB38A, a pale soft orange, on the warm side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#7DD3FC
  • Complement#FCB38A

Complementary

Open in Harmony Studio
  • −30°#6CDBE1
  • Base#7DD3FC
  • +30°#A6C8FF
  • Base#7DD3FC
  • +120°#F9ABCF
  • +240°#CACD7E
  • Base#7DD3FC
  • +150°#FFAEAC
  • +210°#E9C078

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-sky-300: #7dd3fc;
}

Tailwind config

// tailwind.config.js — already built in as sky-300;
// pin the v3 value explicitly like this:
module.exports = {
  theme: {
    extend: {
      colors: {
        sky: { 300: '#7dd3fc' },
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  /* v4 has its own sky-300; this pins the v3 value. */
  --color-sky-300: oklch(0.828 0.101 230.3);
}

Design token (W3C DTCG)

{
  "color": {
    "sky-300": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.4902, 0.8275, 0.9882],
        "hex": "#7dd3fc"
      },
      "$description": "Tailwind CSS v3 sky-300"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let sky300 = Color(.sRGB, red: 0.490, green: 0.827, blue: 0.988, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Sky300 = Color(0xFF7DD3FC)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #7DD3FC in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.