#F2CC54#F2CC54

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

Color values

HEX#F2CC54
RGBrgb(242, 204, 84)
HSLhsl(46, 86%, 64%)
HSVhsv(46, 65%, 95%)
CMYKcmyk(0%, 15.7%, 65.3%, 5.1%)
CIE-LABlab(83.29, 0.51, 62.78)
CIE-LCHlch(83.29, 62.78, 89.53°)
OKLaboklab(85.62% -0.0035 0.1424)
OKLCHoklch(85.62% 0.142 91.4)
XYZxyz(59.8141, 62.7064, 17.3388)
Luminance0.6270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CC54 #547AF2
analogous
#F27D54 #F2CC54 #C9F254
triadic
#F2CC54 #54F2CC #CC54F2
tetradic
#F2CC54 #54F27D #547AF2 #F254C9
square
#F2CC54 #54F27D #547AF2 #F254C9
split-complementary
#F2CC54 #54C9F2 #7D54F2
monochromatic
#BD930E #EEBB1B #F2CC54 #F6DD8D #FBEEC6

Accessibility & contrast

On white

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

On black

13.54
#F2CC54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2CC54
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2CC54#FFFFFF#000000##000000
##F2CC541.001.5513.5413.54
#FFFFFF1.551.0021.0021.00
#00000013.5421.001.001.00
##00000013.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C946
Deuteranopia (green-blind)
#EAD45A
Tritanopia (blue-blind)
#FFBCB3
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #f2cc54;
/* rgb */ color: rgb(242, 204, 84);
/* oklch */ color: oklch(85.6% 0.142 91.4);
Tailwind
colors: {
  custom: {
    50: '#fadb89',
    500: '#f2cc54',
    950: '#000000',
  },
}
SCSS
$custom: #f2cc54;
$custom-light: #fadb89;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cc54",
  "rgb": {
    "r": 242,
    "g": 204,
    "b": 84
  },
  "hsl": {
    "h": 45.57,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.85621,
    "c": 0.1424,
    "h": 91.4
  },
  "luminance": 0.62703
}

Semantic roles & 50–950 ramp

primary
#F2CC54
secondary
#2F51BB
accent
#39E203
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F2CC54

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

Preview Lab → · Contrast checker → · Palette generator →

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