#F2E27E#F2E27E

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

Color values

HEX#F2E27E
RGBrgb(242, 226, 126)
HSLhsl(52, 82%, 72%)
HSVhsv(52, 48%, 95%)
CMYKcmyk(0%, 6.6%, 47.9%, 5.1%)
CIE-LABlab(89.29, -7.56, 50.52)
CIE-LCHlch(89.29, 51.08, 98.51°)
OKLaboklab(90.51% -0.0221 0.1206)
OKLCHoklch(90.51% 0.123 100.4)
XYZxyz(67.5821, 74.7786, 30.6084)
Luminance0.7478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E27E #7E8EF2
analogous
#F2A87E #F2E27E #C8F27E
triadic
#F2E27E #7EF2E2 #E27EF2
tetradic
#F2E27E #7EF2A8 #7E8EF2 #F27EC8
square
#F2E27E #7EF2A8 #7E8EF2 #F27EC8
split-complementary
#F2E27E #7EC8F2 #A87EF2
monochromatic
#DFC316 #ECD646 #F2E27E #F8EEB6 #FCF9E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2E27E#FFFFFF#000000##000000
##F2E27E1.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)
#F3DD75
Deuteranopia (green-blind)
#F7E382
Tritanopia (blue-blind)
#FFD6CA
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e27e;
/* rgb */ color: rgb(242, 226, 126);
/* oklch */ color: oklch(90.5% 0.123 100.4);
Tailwind
colors: {
  custom: {
    50: '#f8eaa5',
    500: '#f2e27e',
    950: '#000000',
  },
}
SCSS
$custom: #f2e27e;
$custom-light: #f8eaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e27e",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 126
  },
  "hsl": {
    "h": 51.724,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.90506,
    "c": 0.12258,
    "h": 100.4
  },
  "luminance": 0.74776
}

Semantic roles & 50–950 ramp

primary
#F2E27E
secondary
#475ACD
accent
#25DE07
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F2E27E

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

Preview Lab → · Contrast checker → · Palette generator →

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