#F0E271#F0E271

#F0E271 is a very light, vivid yellow. Relative luminance 0.741; OKLCH L 90.2% C 0.135 H 102.3°. Best body text is #000000 at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#F0E271
RGBrgb(240, 226, 113)
HSLhsl(53, 81%, 69%)
HSVhsv(53, 53%, 94%)
CMYKcmyk(0%, 5.8%, 52.9%, 5.9%)
CIE-LABlab(88.98, -9.46, 56.21)
CIE-LCHlch(88.98, 57.00, 99.56°)
OKLaboklab(90.17% -0.0288 0.132)
OKLCHoklch(90.17% 0.135 102.3)
XYZxyz(66.1142, 74.1125, 26.4421)
Luminance0.7411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E271 #717FF0
analogous
#F0A371 #F0E271 #BFF071
triadic
#F0E271 #71F0E2 #E271F0
tetradic
#F0E271 #71F0A3 #717FF0 #F071BF
square
#F0E271 #71F0A3 #717FF0 #F071BF
split-complementary
#F0E271 #71BFF0 #A371F0
monochromatic
#D1BC16 #EAD73A #F0E271 #F6EDA8 #FCF9E0

Accessibility & contrast

On white

1.33
#F0E271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.82
#F0E271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E271
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E271#FFFFFF#000000##000000
##F0E2711.001.3315.8215.82
#FFFFFF1.331.0021.0021.00
#00000015.8221.001.001.00
##00000015.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC66
Deuteranopia (green-blind)
#F8E276
Tritanopia (blue-blind)
#FFD5C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f0e271;
/* rgb */ color: rgb(240, 226, 113);
/* oklch */ color: oklch(90.2% 0.135 102.3);
Tailwind
colors: {
  custom: {
    50: '#f7ea9d',
    500: '#f0e271',
    950: '#000000',
  },
}
SCSS
$custom: #f0e271;
$custom-light: #f7ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e271",
  "rgb": {
    "r": 240,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 53.386,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.9017,
    "c": 0.13505,
    "h": 102.3
  },
  "luminance": 0.7411
}

Semantic roles & 50–950 ramp

primary
#F0E271
secondary
#3C4CC9
accent
#20DD08
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0E271

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

Preview Lab → · Contrast checker → · Palette generator →

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