#F2D257#F2D257

#F2D257 is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.8% C 0.144 H 94.6°. Best body text is #000000 at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#F2D257
RGBrgb(242, 210, 87)
HSLhsl(48, 86%, 65%)
HSVhsv(48, 64%, 95%)
CMYKcmyk(0%, 13.2%, 64%, 5.1%)
CIE-LABlab(84.82, -2.38, 63.15)
CIE-LCHlch(84.82, 63.19, 92.16°)
OKLaboklab(86.84% -0.0115 0.1436)
OKLCHoklch(86.84% 0.144 94.6)
XYZxyz(61.3877, 65.6617, 18.4555)
Luminance0.6566 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D257 #5777F2
analogous
#F28557 #F2D257 #C4F257
triadic
#F2D257 #57F2D2 #D257F2
tetradic
#F2D257 #57F285 #5777F2 #F257C4
square
#F2D257 #57F285 #5777F2 #F257C4
split-complementary
#F2D257 #57C4F2 #8557F2
monochromatic
#C09B0F #EEC31E #F2D257 #F6E190 #FBF0C9

Accessibility & contrast

On white

1.49
#F2D257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.13
#F2D257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D257
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D257#FFFFFF#000000##000000
##F2D2571.001.4914.1314.13
#FFFFFF1.491.0021.0021.00
#00000014.1321.001.001.00
##00000014.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE49
Deuteranopia (green-blind)
#EFD85D
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d257;
/* rgb */ color: rgb(242, 210, 87);
/* oklch */ color: oklch(86.8% 0.144 94.6);
Tailwind
colors: {
  custom: {
    50: '#fadf8b',
    500: '#f2d257',
    950: '#000000',
  },
}
SCSS
$custom: #f2d257;
$custom-light: #fadf8b;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d257",
  "rgb": {
    "r": 242,
    "g": 210,
    "b": 87
  },
  "hsl": {
    "h": 47.613,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.86842,
    "c": 0.14406,
    "h": 94.6
  },
  "luminance": 0.65659
}

Semantic roles & 50–950 ramp

primary
#F2D257
secondary
#304DBE
accent
#31E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D257

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

Preview Lab → · Contrast checker → · Palette generator →

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