#F2D56B#F2D56B

#F2D56B is a very light, vivid yellow. Relative luminance 0.675; OKLCH L 87.7% C 0.130 H 94.3°. Best body text is #000000 at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#F2D56B
RGBrgb(242, 213, 107)
HSLhsl(47, 84%, 68%)
HSVhsv(47, 56%, 95%)
CMYKcmyk(0%, 12%, 55.8%, 5.1%)
CIE-LABlab(85.77, -2.56, 55.30)
CIE-LCHlch(85.77, 55.36, 92.65°)
OKLaboklab(87.65% -0.0097 0.1293)
OKLCHoklch(87.65% 0.13 94.3)
XYZxyz(63.0685, 67.5302, 23.6196)
Luminance0.6753 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D56B #6B88F2
analogous
#F2916B #F2D56B #CBF26B
triadic
#F2D56B #6BF2D5 #D56BF2
tetradic
#F2D56B #6BF291 #6B88F2 #F26BCB
square
#F2D56B #6BF291 #6B88F2 #F26BCB
split-complementary
#F2D56B #6BCBF2 #916BF2
monochromatic
#D0A712 #EDC533 #F2D56B #F7E5A3 #FCF5DC

Accessibility & contrast

On white

1.45
#F2D56B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.51
#F2D56B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D56B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D56B#FFFFFF#000000##000000
##F2D56B1.001.4514.5114.51
#FFFFFF1.451.0021.0021.00
#00000014.5121.001.001.00
##00000014.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D161
Deuteranopia (green-blind)
#EFDA70
Tritanopia (blue-blind)
#FFC7BD
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f2d56b;
/* rgb */ color: rgb(242, 213, 107);
/* oklch */ color: oklch(87.7% 0.130 94.3);
Tailwind
colors: {
  custom: {
    50: '#f9e198',
    500: '#f2d56b',
    950: '#000000',
  },
}
SCSS
$custom: #f2d56b;
$custom-light: #f9e198;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d56b",
  "rgb": {
    "r": 242,
    "g": 213,
    "b": 107
  },
  "hsl": {
    "h": 47.111,
    "s": 83.851,
    "l": 68.431
  },
  "oklch": {
    "l": 0.87652,
    "c": 0.12967,
    "h": 94.3
  },
  "luminance": 0.67527
}

Semantic roles & 50–950 ramp

primary
#F2D56B
secondary
#3656CB
accent
#34E005
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D56B

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

Preview Lab → · Contrast checker → · Palette generator →

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