#F2CC5A#F2CC5A

#F2CC5A is a very light, vivid yellow. Relative luminance 0.628; OKLCH L 85.7% C 0.138 H 90.7°. Best body text is #000000 at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#F2CC5A
RGBrgb(242, 204, 90)
HSLhsl(45, 85%, 65%)
HSVhsv(45, 63%, 95%)
CMYKcmyk(0%, 15.7%, 62.8%, 5.1%)
CIE-LABlab(83.34, 0.87, 60.24)
CIE-LCHlch(83.34, 60.25, 89.17°)
OKLaboklab(85.68% -0.0017 0.1379)
OKLCHoklch(85.68% 0.138 90.7)
XYZxyz(60.0592, 62.8045, 18.6299)
Luminance0.6280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CC5A #5A80F2
analogous
#F2805A #F2CC5A #CCF25A
triadic
#F2CC5A #5AF2CC #CC5AF2
tetradic
#F2CC5A #5AF280 #5A80F2 #F25ACC
square
#F2CC5A #5AF280 #5A80F2 #F25ACC
split-complementary
#F2CC5A #5ACCF2 #805AF2
monochromatic
#C2960F #EEBA21 #F2CC5A #F6DE93 #FBEFCB

Accessibility & contrast

On white

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

On black

13.56
#F2CC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2CC5A
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2CC5A#FFFFFF#000000##000000
##F2CC5A1.001.5513.5613.56
#FFFFFF1.551.0021.0021.00
#00000013.5621.001.001.00
##00000013.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C94D
Deuteranopia (green-blind)
#EAD45F
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #f2cc5a;
/* rgb */ color: rgb(242, 204, 90);
/* oklch */ color: oklch(85.7% 0.138 90.7);
Tailwind
colors: {
  custom: {
    50: '#fadb8d',
    500: '#f2cc5a',
    950: '#000000',
  },
}
SCSS
$custom: #f2cc5a;
$custom-light: #fadb8d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cc5a",
  "rgb": {
    "r": 242,
    "g": 204,
    "b": 90
  },
  "hsl": {
    "h": 45,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.85678,
    "c": 0.13786,
    "h": 90.7
  },
  "luminance": 0.62801
}

Semantic roles & 50–950 ramp

primary
#F2CC5A
secondary
#3054C0
accent
#3BE204
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F

Preview Lab

Preview with #F2CC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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