#F5F572#F5F572

#F5F572 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.5% C 0.153 H 109.0°. Best body text is #000000 at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#F5F572
RGBrgb(245, 245, 114)
HSLhsl(60, 87%, 70%)
HSVhsv(60, 53%, 96%)
CMYKcmyk(0%, 0%, 53.5%, 3.9%)
CIE-LABlab(94.28, -16.74, 62.00)
CIE-LCHlch(94.28, 64.22, 105.11°)
OKLaboklab(94.49% -0.0497 0.1445)
OKLCHoklch(94.49% 0.153 109)
XYZxyz(73.3478, 85.9341, 28.6395)
Luminance0.8593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F572 #7272F5
analogous
#F5B372 #F5F572 #B3F572
triadic
#F5F572 #72F5F5 #F572F5
tetradic
#F5F572 #72F5B3 #7272F5 #F572B3
square
#F5F572 #72F5B3 #7272F5 #F572B3
split-complementary
#F5F572 #72B3F5 #B372F5
monochromatic
#DDDD10 #F1F139 #F5F572 #F9F9AB #FDFDE2

Accessibility & contrast

On white

1.15
#F5F572 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.19
#F5F572 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F572
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F572#FFFFFF#000000##000000
##F5F5721.001.1518.1918.19
#FFFFFF1.151.0021.0021.00
#00000018.1921.001.001.00
##00000018.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC65
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFE8D8
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f5f572;
/* rgb */ color: rgb(245, 245, 114);
/* oklch */ color: oklch(94.5% 0.153 109.0);
Tailwind
colors: {
  custom: {
    50: '#fbf89e',
    500: '#f5f572',
    950: '#000000',
  },
}
SCSS
$custom: #f5f572;
$custom-light: #fbf89e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f572",
  "rgb": {
    "r": 245,
    "g": 245,
    "b": 114
  },
  "hsl": {
    "h": 60,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94492,
    "c": 0.15277,
    "h": 109
  },
  "luminance": 0.85932
}

Semantic roles & 50–950 ramp

primary
#F5F572
secondary
#3C3CCF
accent
#02E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F572

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

Preview Lab → · Contrast checker → · Palette generator →

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