#F2DF74#F2DF74

#F2DF74 is a very light, vivid yellow. Relative luminance 0.729; OKLCH L 89.8% C 0.130 H 99.4°. Best body text is #000000 at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#F2DF74
RGBrgb(242, 223, 116)
HSLhsl(51, 83%, 70%)
HSVhsv(51, 52%, 95%)
CMYKcmyk(0%, 7.9%, 52.1%, 5.1%)
CIE-LABlab(88.41, -6.91, 54.19)
CIE-LCHlch(88.41, 54.63, 97.27°)
OKLaboklab(89.77% -0.0212 0.1278)
OKLCHoklch(89.77% 0.13 99.4)
XYZxyz(66.1602, 72.9161, 27.1088)
Luminance0.7291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF74 #7487F2
analogous
#F2A074 #F2DF74 #C6F274
triadic
#F2DF74 #74F2DF #DF74F2
tetradic
#F2DF74 #74F2A0 #7487F2 #F274C6
square
#F2DF74 #74F2A0 #7487F2 #F274C6
split-complementary
#F2DF74 #74C6F2 #A074F2
monochromatic
#D7BA14 #EDD23C #F2DF74 #F7ECAC #FCF9E3

Accessibility & contrast

On white

1.35
#F2DF74 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.58
#F2DF74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF74
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF74#FFFFFF#000000##000000
##F2DF741.001.3515.5815.58
#FFFFFF1.351.0021.0021.00
#00000015.5821.001.001.00
##00000015.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA6A
Deuteranopia (green-blind)
#F6E179
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df74;
/* rgb */ color: rgb(242, 223, 116);
/* oklch */ color: oklch(89.8% 0.130 99.4);
Tailwind
colors: {
  custom: {
    50: '#f9e89e',
    500: '#f2df74',
    950: '#000000',
  },
}
SCSS
$custom: #f2df74;
$custom-light: #f9e89e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df74",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 116
  },
  "hsl": {
    "h": 50.952,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.8977,
    "c": 0.12956,
    "h": 99.4
  },
  "luminance": 0.72914
}

Semantic roles & 50–950 ramp

primary
#F2DF74
secondary
#3E54CC
accent
#27DF06
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DF74

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

Preview Lab → · Contrast checker → · Palette generator →

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