#F2F85B#F2F85B

#F2F85B is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.7% C 0.175 H 111.4°. Best body text is #000000 at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#F2F85B
RGBrgb(242, 248, 91)
HSLhsl(62, 92%, 66%)
HSVhsv(62, 63%, 97%)
CMYKcmyk(2.4%, 0%, 63.3%, 2.7%)
CIE-LABlab(94.64, -20.94, 71.91)
CIE-LCHlch(94.64, 74.90, 106.24°)
OKLaboklab(94.66% -0.0638 0.1627)
OKLCHoklch(94.66% 0.175 111.4)
XYZxyz(72.0758, 86.7691, 22.8468)
Luminance0.8677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F85B #615BF8
analogous
#F8B05B #F2F85B #A4F85B
triadic
#F2F85B #5BF2F8 #F85BF2
tetradic
#F2F85B #5BF8B0 #615BF8 #F85BA4
square
#F2F85B #5BF8B0 #615BF8 #F85BA4
split-complementary
#F2F85B #5BA4F8 #B05BF8
monochromatic
#C8D009 #EDF520 #F2F85B #F7FB96 #FBFDD0

Accessibility & contrast

On white

1.14
#F2F85B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.35
#F2F85B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F85B
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F85B#FFFFFF#000000##000000
##F2F85B1.001.1418.3518.35
#FFFFFF1.141.0021.0021.00
#00000018.3521.001.001.00
##00000018.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED46
Deuteranopia (green-blind)
#FFF265
Tritanopia (blue-blind)
#FFEAD8
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f85b;
/* rgb */ color: rgb(242, 248, 91);
/* oklch */ color: oklch(94.7% 0.175 111.4);
Tailwind
colors: {
  custom: {
    50: '#fafa91',
    500: '#f2f85b',
    950: '#000000',
  },
}
SCSS
$custom: #f2f85b;
$custom-light: #fafa91;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f85b",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 91
  },
  "hsl": {
    "h": 62.293,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.94658,
    "c": 0.17477,
    "h": 111.4
  },
  "luminance": 0.86767
}

Semantic roles & 50–950 ramp

primary
#F2F85B
secondary
#322CCB
accent
#00E609
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2F85B

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

Preview Lab → · Contrast checker → · Palette generator →

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