#F2DF57#F2DF57

#F2DF57 is a very light, vivid yellow. Relative luminance 0.723; OKLCH L 89.5% C 0.154 H 101.3°. Best body text is #000000 at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#F2DF57
RGBrgb(242, 223, 87)
HSLhsl(53, 86%, 65%)
HSVhsv(53, 64%, 95%)
CMYKcmyk(0%, 7.9%, 64%, 5.1%)
CIE-LABlab(88.13, -8.95, 66.67)
CIE-LCHlch(88.13, 67.27, 97.65°)
OKLaboklab(89.46% -0.0303 0.1511)
OKLCHoklch(89.46% 0.154 101.3)
XYZxyz(64.7286, 72.3434, 19.5691)
Luminance0.7234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF57 #576AF2
analogous
#F29257 #F2DF57 #B8F257
triadic
#F2DF57 #57F2DF #DF57F2
tetradic
#F2DF57 #57F292 #576AF2 #F257B8
square
#F2DF57 #57F292 #576AF2 #F257B8
split-complementary
#F2DF57 #57B8F2 #9257F2
monochromatic
#C0AA0F #EED41E #F2DF57 #F6EA90 #FBF5C9

Accessibility & contrast

On white

1.36
#F2DF57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.47
#F2DF57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF57
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF57#FFFFFF#000000##000000
##F2DF571.001.3615.4715.47
#FFFFFF1.361.0021.0021.00
#00000015.4721.001.001.00
##00000015.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D946
Deuteranopia (green-blind)
#F8E15F
Tritanopia (blue-blind)
#FFD0C3
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f2df57;
/* rgb */ color: rgb(242, 223, 87);
/* oklch */ color: oklch(89.5% 0.154 101.3);
Tailwind
colors: {
  custom: {
    50: '#fae88c',
    500: '#f2df57',
    950: '#000000',
  },
}
SCSS
$custom: #f2df57;
$custom-light: #fae88c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df57",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 87
  },
  "hsl": {
    "h": 52.645,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.89464,
    "c": 0.15406,
    "h": 101.3
  },
  "luminance": 0.72341
}

Semantic roles & 50–950 ramp

primary
#F2DF57
secondary
#3041BE
accent
#1FE203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2DF57

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

Preview Lab → · Contrast checker → · Palette generator →

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