#F2ED5A#F2ED5A

#F2ED5A is a very light, vivid yellow. Relative luminance 0.802; OKLCH L 92.4% C 0.165 H 107.4°. Best body text is #000000 at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#F2ED5A
RGBrgb(242, 237, 90)
HSLhsl(58, 85%, 65%)
HSVhsv(58, 63%, 95%)
CMYKcmyk(0%, 2.1%, 62.8%, 5.1%)
CIE-LABlab(91.77, -15.69, 69.30)
CIE-LCHlch(91.77, 71.05, 102.76°)
OKLaboklab(92.36% -0.0491 0.157)
OKLCHoklch(92.36% 0.165 107.4)
XYZxyz(68.7499, 80.1860, 21.5268)
Luminance0.8018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED5A #5A5FF2
analogous
#F2A15A #F2ED5A #ABF25A
triadic
#F2ED5A #5AF2ED #ED5AF2
tetradic
#F2ED5A #5AF2A1 #5A5FF2 #F25AAB
square
#F2ED5A #5AF2A1 #5A5FF2 #F25AAB
split-complementary
#F2ED5A #5AABF2 #A15AF2
monochromatic
#C2BC0F #EEE721 #F2ED5A #F6F393 #FBF9CB

Accessibility & contrast

On white

1.23
#F2ED5A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.04
#F2ED5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2ED5A
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2ED5A#FFFFFF#000000##000000
##F2ED5A1.001.2317.0417.04
#FFFFFF1.231.0021.0021.00
#00000017.0421.001.001.00
##00000017.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE447
Deuteranopia (green-blind)
#FFEA63
Tritanopia (blue-blind)
#FFDECF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ed5a;
/* rgb */ color: rgb(242, 237, 90);
/* oklch */ color: oklch(92.4% 0.165 107.4);
Tailwind
colors: {
  custom: {
    50: '#faf28f',
    500: '#f2ed5a',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed5a;
$custom-light: #faf28f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed5a",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 90
  },
  "hsl": {
    "h": 58.026,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.92363,
    "c": 0.16453,
    "h": 107.4
  },
  "luminance": 0.80184
}

Semantic roles & 50–950 ramp

primary
#F2ED5A
secondary
#3035C0
accent
#0BE204
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2ED5A

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

Preview Lab → · Contrast checker → · Palette generator →

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