#F2EF5A#F2EF5A

#F2EF5A is a very light, vivid yellow. Relative luminance 0.813; OKLCH L 92.8% C 0.166 H 108.1°. Best body text is #000000 at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#F2EF5A
RGBrgb(242, 239, 90)
HSLhsl(59, 85%, 65%)
HSVhsv(59, 63%, 95%)
CMYKcmyk(0%, 1.2%, 62.8%, 5.1%)
CIE-LABlab(92.29, -16.66, 69.84)
CIE-LCHlch(92.29, 71.80, 103.42°)
OKLaboklab(92.78% -0.0518 0.1582)
OKLCHoklch(92.78% 0.166 108.1)
XYZxyz(69.3322, 81.3505, 21.7209)
Luminance0.8135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EF5A #5A5DF2
analogous
#F2A35A #F2EF5A #A9F25A
triadic
#F2EF5A #5AF2EF #EF5AF2
tetradic
#F2EF5A #5AF2A3 #5A5DF2 #F25AA9
square
#F2EF5A #5AF2A3 #5A5DF2 #F25AA9
split-complementary
#F2EF5A #5AA9F2 #A35AF2
monochromatic
#C2BF0F #EEE921 #F2EF5A #F6F593 #FBFACB

Accessibility & contrast

On white

1.22
#F2EF5A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.27
#F2EF5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EF5A
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EF5A#FFFFFF#000000##000000
##F2EF5A1.001.2217.2717.27
#FFFFFF1.221.0021.0021.00
#00000017.2721.001.001.00
##00000017.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE647
Deuteranopia (green-blind)
#FFEB63
Tritanopia (blue-blind)
#FFE0D0
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ef5a;
/* rgb */ color: rgb(242, 239, 90);
/* oklch */ color: oklch(92.8% 0.166 108.1);
Tailwind
colors: {
  custom: {
    50: '#faf48f',
    500: '#f2ef5a',
    950: '#000000',
  },
}
SCSS
$custom: #f2ef5a;
$custom-light: #faf48f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ef5a",
  "rgb": {
    "r": 242,
    "g": 239,
    "b": 90
  },
  "hsl": {
    "h": 58.816,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.92777,
    "c": 0.16647,
    "h": 108.1
  },
  "luminance": 0.81348
}

Semantic roles & 50–950 ramp

primary
#F2EF5A
secondary
#3033C0
accent
#08E204
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2EF5A

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

Preview Lab → · Contrast checker → · Palette generator →

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