#F0E262#F0E262

#F0E262 is a very light, vivid yellow. Relative luminance 0.738; OKLCH L 90.0% C 0.148 H 103.1°. Best body text is #000000 at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#F0E262
RGBrgb(240, 226, 98)
HSLhsl(54, 83%, 66%)
HSVhsv(54, 59%, 94%)
CMYKcmyk(0%, 5.8%, 59.2%, 5.9%)
CIE-LABlab(88.83, -10.57, 62.75)
CIE-LCHlch(88.83, 63.63, 99.56°)
OKLaboklab(90.01% -0.0336 0.1443)
OKLCHoklch(90.01% 0.148 103.1)
XYZxyz(65.3385, 73.8022, 22.3564)
Luminance0.7380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E262 #6270F0
analogous
#F09B62 #F0E262 #B7F062
triadic
#F0E262 #62F0E2 #E262F0
tetradic
#F0E262 #62F09B #6270F0 #F062B7
square
#F0E262 #62F09B #6270F0 #F062B7
split-complementary
#F0E262 #62B7F0 #9B62F0
monochromatic
#C5B313 #EBD82A #F0E262 #F5EC9A #FBF7D2

Accessibility & contrast

On white

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

On black

15.76
#F0E262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E262
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E262#FFFFFF#000000##000000
##F0E2621.001.3315.7615.76
#FFFFFF1.331.0021.0021.00
#00000015.7621.001.001.00
##00000015.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DB54
Deuteranopia (green-blind)
#F9E269
Tritanopia (blue-blind)
#FFD4C6
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f0e262;
/* rgb */ color: rgb(240, 226, 98);
/* oklch */ color: oklch(90.0% 0.148 103.1);
Tailwind
colors: {
  custom: {
    50: '#f8ea93',
    500: '#f0e262',
    950: '#000000',
  },
}
SCSS
$custom: #f0e262;
$custom-light: #f8ea93;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e262",
  "rgb": {
    "r": 240,
    "g": 226,
    "b": 98
  },
  "hsl": {
    "h": 54.085,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.90006,
    "c": 0.14815,
    "h": 103.1
  },
  "luminance": 0.738
}

Semantic roles & 50–950 ramp

primary
#F0E262
secondary
#3442C2
accent
#1CDF07
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F0E262

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

Preview Lab → · Contrast checker → · Palette generator →

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