#F2EC5E#F2EC5E

#F2EC5E is a very light, vivid yellow. Relative luminance 0.797; OKLCH L 92.2% C 0.161 H 106.9°. Best body text is #000000 at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#F2EC5E
RGBrgb(242, 236, 94)
HSLhsl(58, 85%, 66%)
HSVhsv(58, 61%, 95%)
CMYKcmyk(0%, 2.5%, 61.2%, 5.1%)
CIE-LABlab(91.54, -14.95, 67.43)
CIE-LCHlch(91.54, 69.07, 102.50°)
OKLaboklab(92.19% -0.0466 0.1537)
OKLCHoklch(92.19% 0.161 106.9)
XYZxyz(68.6361, 79.6785, 22.3515)
Luminance0.7968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC5E #5E64F2
analogous
#F2A25E #F2EC5E #AEF25E
triadic
#F2EC5E #5EF2EC #EC5EF2
tetradic
#F2EC5E #5EF2A2 #5E64F2 #F25EAE
square
#F2EC5E #5EF2A2 #5E64F2 #F25EAE
split-complementary
#F2EC5E #5EAEF2 #A25EF2
monochromatic
#C6BE10 #EDE525 #F2EC5E #F7F397 #FBF9CF

Accessibility & contrast

On white

1.24
#F2EC5E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.94
#F2EC5E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC5E
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC5E#FFFFFF#000000##000000
##F2EC5E1.001.2416.9416.94
#FFFFFF1.241.0021.0021.00
#00000016.9421.001.001.00
##00000016.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE44D
Deuteranopia (green-blind)
#FFE966
Tritanopia (blue-blind)
#FFDECE
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec5e;
/* rgb */ color: rgb(242, 236, 94);
/* oklch */ color: oklch(92.2% 0.161 106.9);
Tailwind
colors: {
  custom: {
    50: '#f9f191',
    500: '#f2ec5e',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec5e;
$custom-light: #f9f191;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec5e",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 94
  },
  "hsl": {
    "h": 57.568,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.92192,
    "c": 0.16057,
    "h": 106.9
  },
  "luminance": 0.79676
}

Semantic roles & 50–950 ramp

primary
#F2EC5E
secondary
#3137C3
accent
#0DE204
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2EC5E

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

Preview Lab → · Contrast checker → · Palette generator →

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