#F2DF71#F2DF71

#F2DF71 is a very light, vivid yellow. Relative luminance 0.728; OKLCH L 89.7% C 0.132 H 99.7°. Best body text is #000000 at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#F2DF71
RGBrgb(242, 223, 113)
HSLhsl(51, 83%, 70%)
HSVhsv(51, 53%, 95%)
CMYKcmyk(0%, 7.9%, 53.3%, 5.1%)
CIE-LABlab(88.37, -7.15, 55.55)
CIE-LCHlch(88.37, 56.01, 97.34°)
OKLaboklab(89.73% -0.0222 0.1305)
OKLCHoklch(89.73% 0.132 99.7)
XYZxyz(65.9885, 72.8474, 26.2046)
Luminance0.7285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF71 #7184F2
analogous
#F29F71 #F2DF71 #C4F271
triadic
#F2DF71 #71F2DF #DF71F2
tetradic
#F2DF71 #71F29F #7184F2 #F271C4
square
#F2DF71 #71F29F #7184F2 #F271C4
split-complementary
#F2DF71 #71C4F2 #9F71F2
monochromatic
#D5B914 #EDD239 #F2DF71 #F7ECA9 #FCF8E1

Accessibility & contrast

On white

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

On black

15.57
#F2DF71 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF71
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF71#FFFFFF#000000##000000
##F2DF711.001.3515.5715.57
#FFFFFF1.351.0021.0021.00
#00000015.5721.001.001.00
##00000015.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2df71;
/* rgb */ color: rgb(242, 223, 113);
/* oklch */ color: oklch(89.7% 0.132 99.7);
Tailwind
colors: {
  custom: {
    50: '#f9e89d',
    500: '#f2df71',
    950: '#000000',
  },
}
SCSS
$custom: #f2df71;
$custom-light: #f9e89d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df71",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 113
  },
  "hsl": {
    "h": 51.163,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.89733,
    "c": 0.13236,
    "h": 99.7
  },
  "luminance": 0.72845
}

Semantic roles & 50–950 ramp

primary
#F2DF71
secondary
#3C51CB
accent
#26E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F2DF71

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

Preview Lab → · Contrast checker → · Palette generator →

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