#F0E26C#F0E26C

#F0E26C is a very light, vivid yellow. Relative luminance 0.740; OKLCH L 90.1% C 0.140 H 102.6°. Best body text is #000000 at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#F0E26C
RGBrgb(240, 226, 108)
HSLhsl(54, 81%, 68%)
HSVhsv(54, 55%, 94%)
CMYKcmyk(0%, 5.8%, 55%, 5.9%)
CIE-LABlab(88.92, -9.85, 58.43)
CIE-LCHlch(88.92, 59.26, 99.57°)
OKLaboklab(90.11% -0.0304 0.1362)
OKLCHoklch(90.11% 0.14 102.6)
XYZxyz(65.8405, 74.0030, 25.0003)
Luminance0.7400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E26C #6C7AF0
analogous
#F0A06C #F0E26C #BCF06C
triadic
#F0E26C #6CF0E2 #E26CF0
tetradic
#F0E26C #6CF0A0 #6C7AF0 #F06CBC
square
#F0E26C #6CF0A0 #6C7AF0 #F06CBC
split-complementary
#F0E26C #6CBCF0 #A06CF0
monochromatic
#CDB915 #EAD734 #F0E26C #F6EDA4 #FBF8DB

Accessibility & contrast

On white

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

On black

15.80
#F0E26C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E26C
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E26C#FFFFFF#000000##000000
##F0E26C1.001.3315.8015.80
#FFFFFF1.331.0021.0021.00
#00000015.8021.001.001.00
##00000015.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DC60
Deuteranopia (green-blind)
#F8E272
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f0e26c;
/* rgb */ color: rgb(240, 226, 108);
/* oklch */ color: oklch(90.1% 0.140 102.6);
Tailwind
colors: {
  custom: {
    50: '#f7ea99',
    500: '#f0e26c',
    950: '#000000',
  },
}
SCSS
$custom: #f0e26c;
$custom-light: #f7ea99;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e26c",
  "rgb": {
    "r": 240,
    "g": 226,
    "b": 108
  },
  "hsl": {
    "h": 53.636,
    "s": 81.481,
    "l": 68.235
  },
  "oklch": {
    "l": 0.90112,
    "c": 0.13958,
    "h": 102.6
  },
  "luminance": 0.74001
}

Semantic roles & 50–950 ramp

primary
#F0E26C
secondary
#3847C8
accent
#1EDE08
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F0E26C

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

Preview Lab → · Contrast checker → · Palette generator →

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