#F2EC62#F2EC62

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

Color values

HEX#F2EC62
RGBrgb(242, 236, 98)
HSLhsl(58, 85%, 67%)
HSVhsv(58, 60%, 95%)
CMYKcmyk(0%, 2.5%, 59.5%, 5.1%)
CIE-LABlab(91.57, -14.70, 65.81)
CIE-LCHlch(91.57, 67.43, 102.59°)
OKLaboklab(92.23% -0.0454 0.1508)
OKLCHoklch(92.23% 0.157 106.8)
XYZxyz(68.8202, 79.7522, 23.3214)
Luminance0.7975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC62 #6268F2
analogous
#F2A462 #F2EC62 #B0F262
triadic
#F2EC62 #62F2EC #EC62F2
tetradic
#F2EC62 #62F2A4 #6268F2 #F262B0
square
#F2EC62 #62F2A4 #6268F2 #F262B0
split-complementary
#F2EC62 #62B0F2 #A462F2
monochromatic
#C9C111 #EDE529 #F2EC62 #F7F39B #FBFAD3

Accessibility & contrast

On white

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

On black

16.95
#F2EC62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC62
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC62#FFFFFF#000000##000000
##F2EC621.001.2416.9516.95
#FFFFFF1.241.0021.0021.00
#00000016.9521.001.001.00
##00000016.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2ec62;
/* rgb */ color: rgb(242, 236, 98);
/* oklch */ color: oklch(92.2% 0.157 106.8);
Tailwind
colors: {
  custom: {
    50: '#f9f194',
    500: '#f2ec62',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec62;
$custom-light: #f9f194;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec62",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 98
  },
  "hsl": {
    "h": 57.5,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.92229,
    "c": 0.15745,
    "h": 106.8
  },
  "luminance": 0.7975
}

Semantic roles & 50–950 ramp

primary
#F2EC62
secondary
#3339C6
accent
#0EE104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2EC62

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

Preview Lab → · Contrast checker → · Palette generator →

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