#F0E27F#F0E27F

#F0E27F is a very light, vivid yellow. Relative luminance 0.745; OKLCH L 90.3% C 0.121 H 101.3°. Best body text is #000000 at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#F0E27F
RGBrgb(240, 226, 127)
HSLhsl(53, 79%, 72%)
HSVhsv(53, 47%, 94%)
CMYKcmyk(0%, 5.8%, 47.1%, 5.9%)
CIE-LABlab(89.14, -8.26, 49.81)
CIE-LCHlch(89.14, 50.49, 99.42°)
OKLaboklab(90.35% -0.0239 0.1191)
OKLCHoklch(90.35% 0.121 101.3)
XYZxyz(66.9641, 74.4525, 30.9179)
Luminance0.7445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E27F #7F8DF0
analogous
#F0A97F #F0E27F #C6F07F
triadic
#F0E27F #7FF0E2 #E27FF0
tetradic
#F0E27F #7FF0A9 #7F8DF0 #F07FC6
square
#F0E27F #7FF0A9 #7F8DF0 #F07FC6
split-complementary
#F0E27F #7FC6F0 #A97FF0
monochromatic
#DBC31A #EAD648 #F0E27F #F6EEB6 #FCF9E4

Accessibility & contrast

On white

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

On black

15.89
#F0E27F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E27F
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E27F#FFFFFF#000000##000000
##F0E27F1.001.3215.8915.89
#FFFFFF1.321.0021.0021.00
#00000015.8921.001.001.00
##00000015.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0e27f;
/* rgb */ color: rgb(240, 226, 127);
/* oklch */ color: oklch(90.3% 0.121 101.3);
Tailwind
colors: {
  custom: {
    50: '#f7eaa6',
    500: '#f0e27f',
    950: '#000000',
  },
}
SCSS
$custom: #f0e27f;
$custom-light: #f7eaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e27f",
  "rgb": {
    "r": 240,
    "g": 226,
    "b": 127
  },
  "hsl": {
    "h": 52.566,
    "s": 79.021,
    "l": 71.961
  },
  "oklch": {
    "l": 0.90349,
    "c": 0.12149,
    "h": 101.3
  },
  "luminance": 0.7445
}

Semantic roles & 50–950 ramp

primary
#F0E27F
secondary
#4959CB
accent
#24DB0A
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F0E27F

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

Preview Lab → · Contrast checker → · Palette generator →

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