#F2E796#F2E796

#F2E796 is a very light, moderate yellow. Relative luminance 0.782; OKLCH L 91.9% C 0.102 H 101.5°. Best body text is #000000 at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#F2E796
RGBrgb(242, 231, 150)
HSLhsl(53, 78%, 77%)
HSVhsv(53, 38%, 95%)
CMYKcmyk(0%, 4.5%, 38%, 5.1%)
CIE-LABlab(90.89, -7.68, 40.78)
CIE-LCHlch(90.89, 41.50, 100.67°)
OKLaboklab(91.88% -0.0203 0.1)
OKLCHoklch(91.88% 0.102 101.5)
XYZxyz(70.7001, 78.2330, 40.2244)
Luminance0.7823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E796 #96A1F2
analogous
#F2B996 #F2E796 #CFF296
triadic
#F2E796 #96F2E7 #E796F2
tetradic
#F2E796 #96F2B9 #96A1F2 #F296CF
square
#F2E796 #96F2B9 #96A1F2 #F296CF
split-complementary
#F2E796 #96CFF2 #B996F2
monochromatic
#E5CE29 #EBDB60 #F2E796 #F9F3CC #FCF9E4

Accessibility & contrast

On white

1.26
#F2E796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.65
#F2E796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E796
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E796#FFFFFF#000000##000000
##F2E7961.001.2616.6516.65
#FFFFFF1.261.0021.0021.00
#00000016.6521.001.001.00
##00000016.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5E290
Deuteranopia (green-blind)
#F9E799
Tritanopia (blue-blind)
#FFDCD3
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e796;
/* rgb */ color: rgb(242, 231, 150);
/* oklch */ color: oklch(91.9% 0.102 101.5);
Tailwind
colors: {
  custom: {
    50: '#f7eeb6',
    500: '#f2e796',
    950: '#000000',
  },
}
SCSS
$custom: #f2e796;
$custom-light: #f7eeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e796",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 150
  },
  "hsl": {
    "h": 52.826,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.91876,
    "c": 0.10208,
    "h": 101.5
  },
  "luminance": 0.78231
}

Semantic roles & 50–950 ramp

primary
#F2E796
secondary
#5D6BCF
accent
#24DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2E796

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

Preview Lab → · Contrast checker → · Palette generator →

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