#F2E27D#F2E27D

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

Color values

HEX#F2E27D
RGBrgb(242, 226, 125)
HSLhsl(52, 82%, 72%)
HSVhsv(52, 48%, 95%)
CMYKcmyk(0%, 6.6%, 48.3%, 5.1%)
CIE-LABlab(89.28, -7.65, 50.98)
CIE-LCHlch(89.28, 51.55, 98.53°)
OKLaboklab(90.49% -0.0224 0.1215)
OKLCHoklch(90.49% 0.124 100.4)
XYZxyz(67.5179, 74.7530, 30.2703)
Luminance0.7475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E27D #7D8DF2
analogous
#F2A87D #F2E27D #C8F27D
triadic
#F2E27D #7DF2E2 #E27DF2
tetradic
#F2E27D #7DF2A8 #7D8DF2 #F27DC8
square
#F2E27D #7DF2A8 #7D8DF2 #F27DC8
split-complementary
#F2E27D #7DC8F2 #A87DF2
monochromatic
#DEC316 #ECD645 #F2E27D #F8EEB5 #FCF9E3

Accessibility & contrast

On white

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

On black

15.95
#F2E27D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E27D
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E27D#FFFFFF#000000##000000
##F2E27D1.001.3215.9515.95
#FFFFFF1.321.0021.0021.00
#00000015.9521.001.001.00
##00000015.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DD74
Deuteranopia (green-blind)
#F7E381
Tritanopia (blue-blind)
#FFD5CA
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f2e27d;
/* rgb */ color: rgb(242, 226, 125);
/* oklch */ color: oklch(90.5% 0.124 100.4);
Tailwind
colors: {
  custom: {
    50: '#f8eaa5',
    500: '#f2e27d',
    950: '#000000',
  },
}
SCSS
$custom: #f2e27d;
$custom-light: #f8eaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e27d",
  "rgb": {
    "r": 242,
    "g": 226,
    "b": 125
  },
  "hsl": {
    "h": 51.795,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.90493,
    "c": 0.12357,
    "h": 100.4
  },
  "luminance": 0.74751
}

Semantic roles & 50–950 ramp

primary
#F2E27D
secondary
#4659CD
accent
#25DE07
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F2E27D

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

Preview Lab → · Contrast checker → · Palette generator →

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