#F0E270#F0E270

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

Color values

HEX#F0E270
RGBrgb(240, 226, 112)
HSLhsl(53, 81%, 69%)
HSVhsv(53, 53%, 94%)
CMYKcmyk(0%, 5.8%, 53.3%, 5.9%)
CIE-LABlab(88.97, -9.54, 56.66)
CIE-LCHlch(88.97, 57.46, 99.56°)
OKLaboklab(90.16% -0.0291 0.1328)
OKLCHoklch(90.16% 0.136 102.4)
XYZxyz(66.0583, 74.0901, 26.1473)
Luminance0.7409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E270 #707EF0
analogous
#F0A270 #F0E270 #BEF070
triadic
#F0E270 #70F0E2 #E270F0
tetradic
#F0E270 #70F0A2 #707EF0 #F070BE
square
#F0E270 #70F0A2 #707EF0 #F070BE
split-complementary
#F0E270 #70BEF0 #A270F0
monochromatic
#D0BB16 #EAD739 #F0E270 #F6EDA7 #FCF8DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0E270#FFFFFF#000000##000000
##F0E2701.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)
#F3DC65
Deuteranopia (green-blind)
#F8E275
Tritanopia (blue-blind)
#FFD5C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f0e270;
/* rgb */ color: rgb(240, 226, 112);
/* oklch */ color: oklch(90.2% 0.136 102.4);
Tailwind
colors: {
  custom: {
    50: '#f7ea9c',
    500: '#f0e270',
    950: '#000000',
  },
}
SCSS
$custom: #f0e270;
$custom-light: #f7ea9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e270",
  "rgb": {
    "r": 240,
    "g": 226,
    "b": 112
  },
  "hsl": {
    "h": 53.438,
    "s": 81.013,
    "l": 69.02
  },
  "oklch": {
    "l": 0.90158,
    "c": 0.13597,
    "h": 102.4
  },
  "luminance": 0.74088
}

Semantic roles & 50–950 ramp

primary
#F0E270
secondary
#3B4BC9
accent
#1FDD08
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0E270

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

Preview Lab → · Contrast checker → · Palette generator →

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