#F2F258#F2F258

#F2F258 is a very light, vivid yellow. Relative luminance 0.831; OKLCH L 93.4% C 0.171 H 109.3°. Best body text is #000000 at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#F2F258
RGBrgb(242, 242, 88)
HSLhsl(60, 86%, 65%)
HSVhsv(60, 64%, 95%)
CMYKcmyk(0%, 0%, 63.6%, 5.1%)
CIE-LABlab(93.05, -18.24, 71.43)
CIE-LCHlch(93.05, 73.72, 104.32°)
OKLaboklab(93.38% -0.0565 0.1613)
OKLCHoklch(93.38% 0.171 109.3)
XYZxyz(70.1338, 83.0881, 21.5738)
Luminance0.8309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F258 #5858F2
analogous
#F2A558 #F2F258 #A5F258
triadic
#F2F258 #58F2F2 #F258F2
tetradic
#F2F258 #58F2A5 #5858F2 #F258A5
square
#F2F258 #58F2A5 #5858F2 #F258A5
split-complementary
#F2F258 #58A5F2 #A558F2
monochromatic
#C1C10F #EEEE1F #F2F258 #F6F691 #FBFBCA

Accessibility & contrast

On white

1.19
#F2F258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.62
#F2F258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F258
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F258#FFFFFF#000000##000000
##F2F2581.001.1917.6217.62
#FFFFFF1.191.0021.0021.00
#00000017.6221.001.001.00
##00000017.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE843
Deuteranopia (green-blind)
#FFED62
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f258;
/* rgb */ color: rgb(242, 242, 88);
/* oklch */ color: oklch(93.4% 0.171 109.3);
Tailwind
colors: {
  custom: {
    50: '#faf68e',
    500: '#f2f258',
    950: '#000000',
  },
}
SCSS
$custom: #f2f258;
$custom-light: #faf68e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f258",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 88
  },
  "hsl": {
    "h": 60,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.93383,
    "c": 0.17085,
    "h": 109.3
  },
  "luminance": 0.83086
}

Semantic roles & 50–950 ramp

primary
#F2F258
secondary
#3030BE
accent
#03E203
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2F258

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

Preview Lab → · Contrast checker → · Palette generator →

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