#ECD271#ECD271

#ECD271 is a very light, vivid yellow. Relative luminance 0.651; OKLCH L 86.6% C 0.121 H 94.7°. Best body text is #000000 at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#ECD271
RGBrgb(236, 210, 113)
HSLhsl(47, 76%, 68%)
HSVhsv(47, 52%, 93%)
CMYKcmyk(0%, 11%, 52.1%, 7.5%)
CIE-LABlab(84.55, -2.99, 50.89)
CIE-LCHlch(84.55, 50.98, 93.37°)
OKLaboklab(86.58% -0.0099 0.1204)
OKLCHoklch(86.58% 0.121 94.7)
XYZxyz(60.6215, 65.1209, 24.9960)
Luminance0.6512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD271 #718BEC
analogous
#EC9471 #ECD271 #C8EC71
triadic
#ECD271 #71ECD2 #D271EC
tetradic
#ECD271 #71EC94 #718BEC #EC71C8
square
#ECD271 #71EC94 #718BEC #EC71C8
split-complementary
#ECD271 #71C8EC #9471EC
monochromatic
#C8A31B #E5C13B #ECD271 #F3E3A7 #FAF4DD

Accessibility & contrast

On white

1.50
#ECD271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.02
#ECD271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD271
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD271#FFFFFF#000000##000000
##ECD2711.001.5014.0214.02
#FFFFFF1.501.0021.0021.00
#00000014.0221.001.001.00
##00000014.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CE68
Deuteranopia (green-blind)
#EAD775
Tritanopia (blue-blind)
#FCC5BB
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #ecd271;
/* rgb */ color: rgb(236, 210, 113);
/* oklch */ color: oklch(86.6% 0.121 94.7);
Tailwind
colors: {
  custom: {
    50: '#f4df9c',
    500: '#ecd271',
    950: '#000000',
  },
}
SCSS
$custom: #ecd271;
$custom-light: #f4df9c;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd271",
  "rgb": {
    "r": 236,
    "g": 210,
    "b": 113
  },
  "hsl": {
    "h": 47.317,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.8658,
    "c": 0.12083,
    "h": 94.7
  },
  "luminance": 0.65118
}

Semantic roles & 50–950 ramp

primary
#ECD271
secondary
#3D5AC4
accent
#38D90D
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #ECD271

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

Preview Lab → · Contrast checker → · Palette generator →

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