#F2E27F#F2E27F

#F2E27F is a very light, vivid yellow. Relative luminance 0.748; OKLCH L 90.5% C 0.122 H 100.3°. Best body text is #000000 at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#F2E27F
RGBrgb(242, 226, 127)
HSLhsl(52, 82%, 72%)
HSVhsv(52, 48%, 95%)
CMYKcmyk(0%, 6.6%, 47.5%, 5.1%)
CIE-LABlab(89.30, -7.47, 50.05)
CIE-LCHlch(89.30, 50.61, 98.49°)
OKLaboklab(90.52% -0.0217 0.1196)
OKLCHoklch(90.52% 0.122 100.3)
XYZxyz(67.6469, 74.8046, 30.9499)
Luminance0.7480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E27F #7F8FF2
analogous
#F2A87F #F2E27F #C9F27F
triadic
#F2E27F #7FF2E2 #E27FF2
tetradic
#F2E27F #7FF2A8 #7F8FF2 #F27FC9
square
#F2E27F #7FF2A8 #7F8FF2 #F27FC9
split-complementary
#F2E27F #7FC9F2 #A87FF2
monochromatic
#E0C417 #ECD547 #F2E27F #F8EFB7 #FCF9E3

Accessibility & contrast

On white

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

On black

15.96
#F2E27F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E27F
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E27F#FFFFFF#000000##000000
##F2E27F1.001.3215.9615.96
#FFFFFF1.321.0021.0021.00
#00000015.9621.001.001.00
##00000015.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DD77
Deuteranopia (green-blind)
#F7E383
Tritanopia (blue-blind)
#FFD6CB
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e27f;
/* rgb */ color: rgb(242, 226, 127);
/* oklch */ color: oklch(90.5% 0.122 100.3);
Tailwind
colors: {
  custom: {
    50: '#f8eaa6',
    500: '#f2e27f',
    950: '#000000',
  },
}
SCSS
$custom: #f2e27f;
$custom-light: #f8eaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e27f",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 127
  },
  "hsl": {
    "h": 51.652,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.9052,
    "c": 0.12157,
    "h": 100.3
  },
  "luminance": 0.74802
}

Semantic roles & 50–950 ramp

primary
#F2E27F
secondary
#485BCD
accent
#25DE08
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F2E27F

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

Preview Lab → · Contrast checker → · Palette generator →

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