#F2D456#F2D456

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

Color values

HEX#F2D456
RGBrgb(242, 212, 86)
HSLhsl(48, 86%, 64%)
HSVhsv(48, 64%, 95%)
CMYKcmyk(0%, 12.4%, 64.5%, 5.1%)
CIE-LABlab(85.32, -3.46, 64.10)
CIE-LCHlch(85.32, 64.20, 93.09°)
OKLaboklab(87.23% -0.0147 0.1455)
OKLCHoklch(87.23% 0.146 95.8)
XYZxyz(61.8440, 66.6392, 18.4074)
Luminance0.6664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D456 #5674F2
analogous
#F28656 #F2D456 #C2F256
triadic
#F2D456 #56F2D4 #D456F2
tetradic
#F2D456 #56F286 #5674F2 #F256C2
square
#F2D456 #56F286 #5674F2 #F256C2
split-complementary
#F2D456 #56C2F2 #8656F2
monochromatic
#BF9D0F #EEC61D #F2D456 #F6E28F #FBF1C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D456#FFFFFF#000000##000000
##F2D4561.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)
#E8D047
Deuteranopia (green-blind)
#F0D95C
Tritanopia (blue-blind)
#FFC5B9
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d456;
/* rgb */ color: rgb(242, 212, 86);
/* oklch */ color: oklch(87.2% 0.146 95.8);
Tailwind
colors: {
  custom: {
    50: '#fae08b',
    500: '#f2d456',
    950: '#000000',
  },
}
SCSS
$custom: #f2d456;
$custom-light: #fae08b;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d456",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 86
  },
  "hsl": {
    "h": 48.462,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.87233,
    "c": 0.14621,
    "h": 95.8
  },
  "luminance": 0.66636
}

Semantic roles & 50–950 ramp

primary
#F2D456
secondary
#2F4ABD
accent
#2EE203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D456

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

Preview Lab → · Contrast checker → · Palette generator →

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