#F2F581#F2F581

#F2F581 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.4% C 0.139 H 110.1°. Best body text is #000000 at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#F2F581
RGBrgb(242, 245, 129)
HSLhsl(62, 85%, 73%)
HSVhsv(62, 47%, 96%)
CMYKcmyk(1.2%, 0%, 47.3%, 3.9%)
CIE-LABlab(94.21, -16.67, 55.06)
CIE-LCHlch(94.21, 57.53, 106.85°)
OKLaboklab(94.43% -0.0479 0.1308)
OKLCHoklch(94.43% 0.139 110.1)
XYZxyz(73.2343, 85.7686, 33.4618)
Luminance0.8577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F581 #8481F5
analogous
#F5BE81 #F2F581 #B8F581
triadic
#F2F581 #81F2F5 #F581F2
tetradic
#F2F581 #81F5BE #8481F5 #F581B8
square
#F2F581 #81F5BE #8481F5 #F581B8
split-complementary
#F2F581 #81B8F5 #BE81F5
monochromatic
#E4E913 #ECF048 #F2F581 #F8F9BA #FCFDE3

Accessibility & contrast

On white

1.16
#F2F581 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.15
#F2F581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F581
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F581#FFFFFF#000000##000000
##F2F5811.001.1618.1518.15
#FFFFFF1.161.0021.0021.00
#00000018.1521.001.001.00
##00000018.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC77
Deuteranopia (green-blind)
#FFF087
Tritanopia (blue-blind)
#FFE9DA
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f581;
/* rgb */ color: rgb(242, 245, 129);
/* oklch */ color: oklch(94.4% 0.139 110.1);
Tailwind
colors: {
  custom: {
    50: '#f8f8a8',
    500: '#f2f581',
    950: '#000000',
  },
}
SCSS
$custom: #f2f581;
$custom-light: #f8f8a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f581",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 129
  },
  "hsl": {
    "h": 61.552,
    "s": 85.294,
    "l": 73.333
  },
  "oklch": {
    "l": 0.94431,
    "c": 0.13929,
    "h": 110.1
  },
  "luminance": 0.85767
}

Semantic roles & 50–950 ramp

primary
#F2F581
secondary
#4D49D1
accent
#04E209
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2F581

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

Preview Lab → · Contrast checker → · Palette generator →

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