#F2ED5F#F2ED5F

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

Color values

HEX#F2ED5F
RGBrgb(242, 237, 95)
HSLhsl(58, 85%, 66%)
HSVhsv(58, 61%, 95%)
CMYKcmyk(0%, 2.1%, 60.7%, 5.1%)
CIE-LABlab(91.81, -15.38, 67.31)
CIE-LCHlch(91.81, 69.04, 102.87°)
OKLaboklab(92.41% -0.0477 0.1535)
OKLCHoklch(92.41% 0.161 107.3)
XYZxyz(68.9700, 80.2740, 22.6856)
Luminance0.8027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED5F #5F64F2
analogous
#F2A35F #F2ED5F #ADF25F
triadic
#F2ED5F #5FF2ED #ED5FF2
tetradic
#F2ED5F #5FF2A3 #5F64F2 #F25FAD
square
#F2ED5F #5FF2A3 #5F64F2 #F25FAD
split-complementary
#F2ED5F #5FADF2 #A35FF2
monochromatic
#C6C010 #EDE726 #F2ED5F #F7F398 #FBFAD0

Accessibility & contrast

On white

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

On black

17.05
#F2ED5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2ED5F
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2ED5F#FFFFFF#000000##000000
##F2ED5F1.001.2317.0517.05
#FFFFFF1.231.0021.0021.00
#00000017.0521.001.001.00
##00000017.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE44E
Deuteranopia (green-blind)
#FFEA67
Tritanopia (blue-blind)
#FFDFCF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ed5f;
/* rgb */ color: rgb(242, 237, 95);
/* oklch */ color: oklch(92.4% 0.161 107.3);
Tailwind
colors: {
  custom: {
    50: '#f9f292',
    500: '#f2ed5f',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed5f;
$custom-light: #f9f292;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed5f",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 95
  },
  "hsl": {
    "h": 57.959,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.92407,
    "c": 0.16077,
    "h": 107.3
  },
  "luminance": 0.80272
}

Semantic roles & 50–950 ramp

primary
#F2ED5F
secondary
#3237C4
accent
#0CE104
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2ED5F

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

Preview Lab → · Contrast checker → · Palette generator →

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