#F2E278#F2E278

#F2E278 is a very light, vivid yellow. Relative luminance 0.746; OKLCH L 90.4% C 0.128 H 100.8°. Best body text is #000000 at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#F2E278
RGBrgb(242, 226, 120)
HSLhsl(52, 82%, 71%)
HSVhsv(52, 50%, 95%)
CMYKcmyk(0%, 6.6%, 50.4%, 5.1%)
CIE-LABlab(89.22, -8.08, 53.28)
CIE-LCHlch(89.22, 53.89, 98.63°)
OKLaboklab(90.43% -0.0242 0.1262)
OKLCHoklch(90.43% 0.128 100.8)
XYZxyz(67.2065, 74.6284, 28.6302)
Luminance0.7463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E278 #7888F2
analogous
#F2A578 #F2E278 #C5F278
triadic
#F2E278 #78F2E2 #E278F2
tetradic
#F2E278 #78F2A5 #7888F2 #F278C5
square
#F2E278 #78F2A5 #7888F2 #F278C5
split-complementary
#F2E278 #78C5F2 #A578F2
monochromatic
#DBC115 #EDD640 #F2E278 #F7EEB0 #FCF9E3

Accessibility & contrast

On white

1.32
#F2E278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.93
#F2E278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E278
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E278#FFFFFF#000000##000000
##F2E2781.001.3215.9315.93
#FFFFFF1.321.0021.0021.00
#00000015.9321.001.001.00
##00000015.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC6F
Deuteranopia (green-blind)
#F8E37D
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e278;
/* rgb */ color: rgb(242, 226, 120);
/* oklch */ color: oklch(90.4% 0.128 100.8);
Tailwind
colors: {
  custom: {
    50: '#f8eaa1',
    500: '#f2e278',
    950: '#000000',
  },
}
SCSS
$custom: #f2e278;
$custom-light: #f8eaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e278",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 120
  },
  "hsl": {
    "h": 52.131,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.90427,
    "c": 0.12846,
    "h": 100.8
  },
  "luminance": 0.74626
}

Semantic roles & 50–950 ramp

primary
#F2E278
secondary
#4254CC
accent
#23DF07
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E278

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

Preview Lab → · Contrast checker → · Palette generator →

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