#F0E27A#F0E27A

#F0E27A is a very light, vivid yellow. Relative luminance 0.743; OKLCH L 90.3% C 0.126 H 101.7°. Best body text is #000000 at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#F0E27A
RGBrgb(240, 226, 122)
HSLhsl(53, 80%, 71%)
HSVhsv(53, 49%, 94%)
CMYKcmyk(0%, 5.8%, 49.2%, 5.9%)
CIE-LABlab(89.08, -8.71, 52.13)
CIE-LCHlch(89.08, 52.85, 99.49°)
OKLaboklab(90.28% -0.0257 0.1238)
OKLCHoklch(90.28% 0.126 101.7)
XYZxyz(66.6463, 74.3253, 29.2441)
Luminance0.7432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E27A #7A88F0
analogous
#F0A77A #F0E27A #C3F07A
triadic
#F0E27A #7AF0E2 #E27AF0
tetradic
#F0E27A #7AF0A7 #7A88F0 #F07AC3
square
#F0E27A #7AF0A7 #7A88F0 #F07AC3
split-complementary
#F0E27A #7AC3F0 #A77AF0
monochromatic
#D7C118 #EAD643 #F0E27A #F6EEB1 #FCF9E4

Accessibility & contrast

On white

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

On black

15.86
#F0E27A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E27A
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E27A#FFFFFF#000000##000000
##F0E27A1.001.3215.8615.86
#FFFFFF1.321.0021.0021.00
#00000015.8621.001.001.00
##00000015.8621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0e27a;
/* rgb */ color: rgb(240, 226, 122);
/* oklch */ color: oklch(90.3% 0.126 101.7);
Tailwind
colors: {
  custom: {
    50: '#f7eaa3',
    500: '#f0e27a',
    950: '#000000',
  },
}
SCSS
$custom: #f0e27a;
$custom-light: #f7eaa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e27a",
  "rgb": {
    "r": 240,
    "g": 226,
    "b": 122
  },
  "hsl": {
    "h": 52.881,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.90282,
    "c": 0.12646,
    "h": 101.7
  },
  "luminance": 0.74323
}

Semantic roles & 50–950 ramp

primary
#F0E27A
secondary
#4454CA
accent
#22DC09
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F0E27A

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

Preview Lab → · Contrast checker → · Palette generator →

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