#F8E270#F8E270

#F8E270 is a very light, vivid yellow. Relative luminance 0.755; OKLCH L 90.9% C 0.136 H 98.6°. Best body text is #000000 at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#F8E270
RGBrgb(248, 226, 112)
HSLhsl(50, 91%, 71%)
HSVhsv(50, 55%, 97%)
CMYKcmyk(0%, 8.9%, 54.8%, 2.7%)
CIE-LABlab(89.64, -6.32, 57.61)
CIE-LCHlch(89.64, 57.96, 96.26°)
OKLaboklab(90.85% -0.0203 0.1347)
OKLCHoklch(90.85% 0.136 98.6)
XYZxyz(68.8348, 75.5218, 26.2774)
Luminance0.7552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E270 #7086F8
analogous
#F89E70 #F8E270 #CAF870
triadic
#F8E270 #70F8E2 #E270F8
tetradic
#F8E270 #70F89E #7086F8 #F870CA
square
#F8E270 #70F89E #7086F8 #F870CA
split-complementary
#F8E270 #70CAF8 #9E70F8
monochromatic
#E3C00B #F5D636 #F8E270 #FBEEAA #FEF9E2

Accessibility & contrast

On white

1.30
#F8E270 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.10
#F8E270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E270
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E270#FFFFFF#000000##000000
##F8E2701.001.3016.1016.10
#FFFFFF1.301.0021.0021.00
#00000016.1021.001.001.00
##00000016.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DD65
Deuteranopia (green-blind)
#FBE575
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e270;
/* rgb */ color: rgb(248, 226, 112);
/* oklch */ color: oklch(90.9% 0.136 98.6);
Tailwind
colors: {
  custom: {
    50: '#fdea9c',
    500: '#f8e270',
    950: '#000000',
  },
}
SCSS
$custom: #f8e270;
$custom-light: #fdea9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e270",
  "rgb": {
    "r": 248,
    "g": 226,
    "b": 112
  },
  "hsl": {
    "h": 50.294,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.90851,
    "c": 0.13625,
    "h": 98.6
  },
  "luminance": 0.75519
}

Semantic roles & 50–950 ramp

primary
#F8E270
secondary
#3952D3
accent
#25E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E270

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

Preview Lab → · Contrast checker → · Palette generator →

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