#F8E46C#F8E46C

#F8E46C is a very light, vivid yellow. Relative luminance 0.765; OKLCH L 91.2% C 0.141 H 100.0°. Best body text is #000000 at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#F8E46C
RGBrgb(248, 228, 108)
HSLhsl(51, 91%, 70%)
HSVhsv(51, 56%, 97%)
CMYKcmyk(0%, 8.1%, 56.5%, 2.7%)
CIE-LABlab(90.10, -7.62, 59.96)
CIE-LCHlch(90.10, 60.44, 97.24°)
OKLaboklab(91.21% -0.0245 0.1394)
OKLCHoklch(91.21% 0.141 100)
XYZxyz(69.1641, 76.5287, 25.3128)
Luminance0.7653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E46C #6C80F8
analogous
#F89E6C #F8E46C #C6F86C
triadic
#F8E46C #6CF8E4 #E46CF8
tetradic
#F8E46C #6CF89E #6C80F8 #F86CC6
square
#F8E46C #6CF89E #6C80F8 #F86CC6
split-complementary
#F8E46C #6CC6F8 #9E6CF8
monochromatic
#DFC10B #F5D932 #F8E46C #FBEFA6 #FEF9E1

Accessibility & contrast

On white

1.29
#F8E46C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.31
#F8E46C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E46C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E46C#FFFFFF#000000##000000
##F8E46C1.001.2916.3116.31
#FFFFFF1.291.0021.0021.00
#00000016.3121.001.001.00
##00000016.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DE60
Deuteranopia (green-blind)
#FDE672
Tritanopia (blue-blind)
#FFD6C9
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f8e46c;
/* rgb */ color: rgb(248, 228, 108);
/* oklch */ color: oklch(91.2% 0.141 100.0);
Tailwind
colors: {
  custom: {
    50: '#fdec9a',
    500: '#f8e46c',
    950: '#000000',
  },
}
SCSS
$custom: #f8e46c;
$custom-light: #fdec9a;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e46c",
  "rgb": {
    "r": 248,
    "g": 228,
    "b": 108
  },
  "hsl": {
    "h": 51.429,
    "s": 90.909,
    "l": 69.804
  },
  "oklch": {
    "l": 0.91209,
    "c": 0.14149,
    "h": 100
  },
  "luminance": 0.76526
}

Semantic roles & 50–950 ramp

primary
#F8E46C
secondary
#364CD2
accent
#21E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E46C

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

Preview Lab → · Contrast checker → · Palette generator →

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