#F2EC95#F2EC95

#F2EC95 is a very light, moderate yellow. Relative luminance 0.810; OKLCH L 92.9% C 0.108 H 104.9°. Best body text is #000000 at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#F2EC95
RGBrgb(242, 236, 149)
HSLhsl(56, 78%, 77%)
HSVhsv(56, 38%, 95%)
CMYKcmyk(0%, 2.5%, 38.4%, 5.1%)
CIE-LABlab(92.15, -10.28, 42.90)
CIE-LCHlch(92.15, 44.11, 103.48°)
OKLaboklab(92.87% -0.0279 0.1048)
OKLCHoklch(92.87% 0.108 104.9)
XYZxyz(72.0393, 81.0398, 40.2753)
Luminance0.8104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC95 #959BF2
analogous
#F2BE95 #F2EC95 #CAF295
triadic
#F2EC95 #95F2EC #EC95F2
tetradic
#F2EC95 #95F2BE #959BF2 #F295CA
square
#F2EC95 #95F2BE #959BF2 #F295CA
split-complementary
#F2EC95 #95CAF2 #BE95F2
monochromatic
#E5D828 #EBE25E #F2EC95 #F9F6CC #FCFAE4

Accessibility & contrast

On white

1.22
#F2EC95 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.21
#F2EC95 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC95
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC95#FFFFFF#000000##000000
##F2EC951.001.2217.2117.21
#FFFFFF1.221.0021.0021.00
#00000017.2121.001.001.00
##00000017.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE68E
Deuteranopia (green-blind)
#FDEB99
Tritanopia (blue-blind)
#FFE1D6
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f2ec95;
/* rgb */ color: rgb(242, 236, 149);
/* oklch */ color: oklch(92.9% 0.108 104.9);
Tailwind
colors: {
  custom: {
    50: '#f7f2b5',
    500: '#f2ec95',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec95;
$custom-light: #f7f2b5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec95",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 149
  },
  "hsl": {
    "h": 56.129,
    "s": 78.151,
    "l": 76.667
  },
  "oklch": {
    "l": 0.92873,
    "c": 0.10848,
    "h": 104.9
  },
  "luminance": 0.81038
}

Semantic roles & 50–950 ramp

primary
#F2EC95
secondary
#5C63CF
accent
#18DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2EC95

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

Preview Lab → · Contrast checker → · Palette generator →

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