#F2EC5A#F2EC5A

#F2EC5A is a very light, vivid yellow. Relative luminance 0.796; OKLCH L 92.2% C 0.164 H 107.0°. Best body text is #000000 at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#F2EC5A
RGBrgb(242, 236, 90)
HSLhsl(58, 85%, 65%)
HSVhsv(58, 63%, 95%)
CMYKcmyk(0%, 2.5%, 62.8%, 5.1%)
CIE-LABlab(91.51, -15.20, 69.02)
CIE-LCHlch(91.51, 70.68, 102.42°)
OKLaboklab(92.16% -0.0477 0.1565)
OKLCHoklch(92.16% 0.164 107)
XYZxyz(68.4612, 79.6085, 21.4306)
Luminance0.7961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC5A #5A60F2
analogous
#F2A05A #F2EC5A #ACF25A
triadic
#F2EC5A #5AF2EC #EC5AF2
tetradic
#F2EC5A #5AF2A0 #5A60F2 #F25AAC
square
#F2EC5A #5AF2A0 #5A60F2 #F25AAC
split-complementary
#F2EC5A #5AACF2 #A05AF2
monochromatic
#C2BB0F #EEE521 #F2EC5A #F6F393 #FBF9CB

Accessibility & contrast

On white

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

On black

16.92
#F2EC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC5A
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC5A#FFFFFF#000000##000000
##F2EC5A1.001.2416.9216.92
#FFFFFF1.241.0021.0021.00
#00000016.9221.001.001.00
##00000016.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE347
Deuteranopia (green-blind)
#FFE963
Tritanopia (blue-blind)
#FFDDCE
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec5a;
/* rgb */ color: rgb(242, 236, 90);
/* oklch */ color: oklch(92.2% 0.164 107.0);
Tailwind
colors: {
  custom: {
    50: '#faf18f',
    500: '#f2ec5a',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec5a;
$custom-light: #faf18f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec5a",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 90
  },
  "hsl": {
    "h": 57.632,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.92156,
    "c": 0.16358,
    "h": 107
  },
  "luminance": 0.79606
}

Semantic roles & 50–950 ramp

primary
#F2EC5A
secondary
#3036C0
accent
#0CE204
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2EC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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