#F2D457#F2D457

#F2D457 is a very light, vivid yellow. Relative luminance 0.667; OKLCH L 87.2% C 0.145 H 95.7°. Best body text is #000000 at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#F2D457
RGBrgb(242, 212, 87)
HSLhsl(48, 86%, 65%)
HSVhsv(48, 64%, 95%)
CMYKcmyk(0%, 12.4%, 64%, 5.1%)
CIE-LABlab(85.33, -3.40, 63.69)
CIE-LCHlch(85.33, 63.78, 93.06°)
OKLaboklab(87.24% -0.0144 0.1448)
OKLCHoklch(87.24% 0.145 95.7)
XYZxyz(61.8846, 66.6554, 18.6211)
Luminance0.6665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D457 #5775F2
analogous
#F28757 #F2D457 #C3F257
triadic
#F2D457 #57F2D4 #D457F2
tetradic
#F2D457 #57F287 #5775F2 #F257C3
square
#F2D457 #57F287 #5775F2 #F257C3
split-complementary
#F2D457 #57C3F2 #8757F2
monochromatic
#C09E0F #EEC51E #F2D457 #F6E390 #FBF1C9

Accessibility & contrast

On white

1.47
#F2D457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.33
#F2D457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D457
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D457#FFFFFF#000000##000000
##F2D4571.001.4714.3314.33
#FFFFFF1.471.0021.0021.00
#00000014.3321.001.001.00
##00000014.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D048
Deuteranopia (green-blind)
#F0D95D
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d457;
/* rgb */ color: rgb(242, 212, 87);
/* oklch */ color: oklch(87.2% 0.145 95.7);
Tailwind
colors: {
  custom: {
    50: '#fae08c',
    500: '#f2d457',
    950: '#000000',
  },
}
SCSS
$custom: #f2d457;
$custom-light: #fae08c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d457",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 87
  },
  "hsl": {
    "h": 48.387,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.87242,
    "c": 0.14547,
    "h": 95.7
  },
  "luminance": 0.66652
}

Semantic roles & 50–950 ramp

primary
#F2D457
secondary
#304BBE
accent
#2EE203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D457

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

Preview Lab → · Contrast checker → · Palette generator →

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