#F2F586#F2F586

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

Color values

HEX#F2F586
RGBrgb(242, 245, 134)
HSLhsl(62, 85%, 74%)
HSVhsv(62, 45%, 96%)
CMYKcmyk(1.2%, 0%, 45.3%, 3.9%)
CIE-LABlab(94.27, -16.22, 52.79)
CIE-LCHlch(94.27, 55.22, 107.08°)
OKLaboklab(94.5% -0.0461 0.1262)
OKLCHoklch(94.5% 0.134 110.1)
XYZxyz(73.5748, 85.9048, 35.2551)
Luminance0.8590 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F586 #8986F5
analogous
#F5C186 #F2F586 #BBF586
triadic
#F2F586 #86F2F5 #F586F2
tetradic
#F2F586 #86F5C1 #8986F5 #F586BB
square
#F2F586 #86F5C1 #8986F5 #F586BB
split-complementary
#F2F586 #86BBF5 #C186F5
monochromatic
#E6EC15 #ECF04D #F2F586 #F8FABF #FCFDE3

Accessibility & contrast

On white

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

On black

18.18
#F2F586 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F586
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F586#FFFFFF#000000##000000
##F2F5861.001.1618.1818.18
#FFFFFF1.161.0021.0021.00
#00000018.1821.001.001.00
##00000018.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED7D
Deuteranopia (green-blind)
#FFF08B
Tritanopia (blue-blind)
#FFE9DB
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f586;
/* rgb */ color: rgb(242, 245, 134);
/* oklch */ color: oklch(94.5% 0.134 110.1);
Tailwind
colors: {
  custom: {
    50: '#f8f8ab',
    500: '#f2f586',
    950: '#000000',
  },
}
SCSS
$custom: #f2f586;
$custom-light: #f8f8ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f586",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 134
  },
  "hsl": {
    "h": 61.622,
    "s": 84.733,
    "l": 74.314
  },
  "oklch": {
    "l": 0.94496,
    "c": 0.13435,
    "h": 110.1
  },
  "luminance": 0.85903
}

Semantic roles & 50–950 ramp

primary
#F2F586
secondary
#514ED2
accent
#04E10A
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2F586

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

Preview Lab → · Contrast checker → · Palette generator →

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