#ECF271#ECF271

#ECF271 is a very light, vivid yellow. Relative luminance 0.825; OKLCH L 93.1% C 0.152 H 111.4°. Best body text is #000000 at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#ECF271
RGBrgb(236, 242, 113)
HSLhsl(63, 83%, 70%)
HSVhsv(63, 53%, 95%)
CMYKcmyk(2.5%, 0%, 53.3%, 5.1%)
CIE-LABlab(92.81, -18.92, 60.57)
CIE-LCHlch(92.81, 63.46, 107.35°)
OKLaboklab(93.15% -0.0555 0.1414)
OKLCHoklch(93.15% 0.152 111.4)
XYZxyz(69.3264, 82.5308, 27.8976)
Luminance0.8253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECF271 #7771F2
analogous
#F2B871 #ECF271 #ABF271
triadic
#ECF271 #71ECF2 #F271EC
tetradic
#ECF271 #71F2B8 #7771F2 #F271AB
square
#ECF271 #71F2B8 #7771F2 #F271AB
split-complementary
#ECF271 #71ABF2 #B871F2
monochromatic
#CCD514 #E4ED39 #ECF271 #F4F7A9 #FBFCE1

Accessibility & contrast

On white

1.20
#ECF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.51
#ECF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECF271
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECF271#FFFFFF#000000##000000
##ECF2711.001.2017.5117.51
#FFFFFF1.201.0021.0021.00
#00000017.5121.001.001.00
##00000017.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#FFEC78
Tritanopia (blue-blind)
#FAE5D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ecf271;
/* rgb */ color: rgb(236, 242, 113);
/* oklch */ color: oklch(93.1% 0.152 111.4);
Tailwind
colors: {
  custom: {
    50: '#f4f69d',
    500: '#ecf271',
    950: '#000000',
  },
}
SCSS
$custom: #ecf271;
$custom-light: #f4f69d;
$custom-dark: #000000;
JSON
{
  "hex": "#ecf271",
  "rgb": {
    "r": 236,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 62.791,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.93145,
    "c": 0.15194,
    "h": 111.4
  },
  "luminance": 0.82529
}

Semantic roles & 50–950 ramp

primary
#ECF271
secondary
#423CCB
accent
#06E010
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170F
muted
#858580

Preview Lab

Preview with #ECF271

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#ECF271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva