#F2E279#F2E279

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

Color values

HEX#F2E279
RGBrgb(242, 226, 121)
HSLhsl(52, 82%, 71%)
HSVhsv(52, 50%, 95%)
CMYKcmyk(0%, 6.6%, 50%, 5.1%)
CIE-LABlab(89.23, -8.00, 52.82)
CIE-LCHlch(89.23, 53.43, 98.61°)
OKLaboklab(90.44% -0.0238 0.1253)
OKLCHoklch(90.44% 0.127 100.8)
XYZxyz(67.2675, 74.6528, 28.9515)
Luminance0.7465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E279 #7989F2
analogous
#F2A579 #F2E279 #C5F279
triadic
#F2E279 #79F2E2 #E279F2
tetradic
#F2E279 #79F2A5 #7989F2 #F279C5
square
#F2E279 #79F2A5 #7989F2 #F279C5
split-complementary
#F2E279 #79C5F2 #A579F2
monochromatic
#DBC115 #EDD641 #F2E279 #F7EEB1 #FCF9E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E279#FFFFFF#000000##000000
##F2E2791.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)
#F3DC70
Deuteranopia (green-blind)
#F8E37E
Tritanopia (blue-blind)
#FFD5CA
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e279;
/* rgb */ color: rgb(242, 226, 121);
/* oklch */ color: oklch(90.4% 0.127 100.8);
Tailwind
colors: {
  custom: {
    50: '#f8eaa2',
    500: '#f2e279',
    950: '#000000',
  },
}
SCSS
$custom: #f2e279;
$custom-light: #f8eaa2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e279",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 121
  },
  "hsl": {
    "h": 52.066,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.9044,
    "c": 0.12749,
    "h": 100.8
  },
  "luminance": 0.7465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2E279

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

Preview Lab → · Contrast checker → · Palette generator →

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