#F2CC56#F2CC56

#F2CC56 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 85.6% C 0.141 H 91.2°. Best body text is #000000 at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#F2CC56
RGBrgb(242, 204, 86)
HSLhsl(45, 86%, 64%)
HSVhsv(45, 64%, 95%)
CMYKcmyk(0%, 15.7%, 64.5%, 5.1%)
CIE-LABlab(83.30, 0.63, 61.94)
CIE-LCHlch(83.30, 61.95, 89.42°)
OKLaboklab(85.64% -0.0029 0.1409)
OKLCHoklch(85.64% 0.141 91.2)
XYZxyz(59.8935, 62.7382, 17.7573)
Luminance0.6273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CC56 #567CF2
analogous
#F27E56 #F2CC56 #CAF256
triadic
#F2CC56 #56F2CC #CC56F2
tetradic
#F2CC56 #56F27E #567CF2 #F256CA
square
#F2CC56 #56F27E #567CF2 #F256CA
split-complementary
#F2CC56 #56CAF2 #7E56F2
monochromatic
#BF940F #EEBB1D #F2CC56 #F6DD8F #FBEEC8

Accessibility & contrast

On white

1.55
#F2CC56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.55
#F2CC56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2CC56
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2CC56#FFFFFF#000000##000000
##F2CC561.001.5513.5513.55
#FFFFFF1.551.0021.0021.00
#00000013.5521.001.001.00
##00000013.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C948
Deuteranopia (green-blind)
#EAD45B
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f2cc56;
/* rgb */ color: rgb(242, 204, 86);
/* oklch */ color: oklch(85.6% 0.141 91.2);
Tailwind
colors: {
  custom: {
    50: '#fadb8a',
    500: '#f2cc56',
    950: '#000000',
  },
}
SCSS
$custom: #f2cc56;
$custom-light: #fadb8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cc56",
  "rgb": {
    "r": 242,
    "g": 204,
    "b": 86
  },
  "hsl": {
    "h": 45.385,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.8564,
    "c": 0.14092,
    "h": 91.2
  },
  "luminance": 0.62735
}

Semantic roles & 50–950 ramp

primary
#F2CC56
secondary
#2F52BD
accent
#3AE203
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F2CC56

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

Preview Lab → · Contrast checker → · Palette generator →

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