#F2ED5B#F2ED5B

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

Color values

HEX#F2ED5B
RGBrgb(242, 237, 91)
HSLhsl(58, 85%, 65%)
HSVhsv(58, 62%, 95%)
CMYKcmyk(0%, 2.1%, 62.4%, 5.1%)
CIE-LABlab(91.78, -15.63, 68.90)
CIE-LCHlch(91.78, 70.65, 102.78°)
OKLaboklab(92.37% -0.0488 0.1564)
OKLCHoklch(92.37% 0.164 107.3)
XYZxyz(68.7928, 80.2031, 21.7525)
Luminance0.8020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED5B #5B60F2
analogous
#F2A15B #F2ED5B #ACF25B
triadic
#F2ED5B #5BF2ED #ED5BF2
tetradic
#F2ED5B #5BF2A1 #5B60F2 #F25BAC
square
#F2ED5B #5BF2A1 #5B60F2 #F25BAC
split-complementary
#F2ED5B #5BACF2 #A15BF2
monochromatic
#C3BD0F #EEE722 #F2ED5B #F6F394 #FBF9CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2ED5B#FFFFFF#000000##000000
##F2ED5B1.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)
#FFE449
Deuteranopia (green-blind)
#FFEA64
Tritanopia (blue-blind)
#FFDECF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ed5b;
/* rgb */ color: rgb(242, 237, 91);
/* oklch */ color: oklch(92.4% 0.164 107.3);
Tailwind
colors: {
  custom: {
    50: '#faf290',
    500: '#f2ed5b',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed5b;
$custom-light: #faf290;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed5b",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 91
  },
  "hsl": {
    "h": 58.013,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.92372,
    "c": 0.1638,
    "h": 107.3
  },
  "luminance": 0.80201
}

Semantic roles & 50–950 ramp

primary
#F2ED5B
secondary
#3135C1
accent
#0BE204
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2ED5B

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

Preview Lab → · Contrast checker → · Palette generator →

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