#F8F478#F8F478

#F8F478 is a very light, vivid yellow. Relative luminance 0.860; OKLCH L 94.6% C 0.146 H 107.2°. Best body text is #000000 at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#F8F478
RGBrgb(248, 244, 120)
HSLhsl(58, 90%, 72%)
HSVhsv(58, 52%, 97%)
CMYKcmyk(0%, 1.6%, 51.6%, 2.7%)
CIE-LABlab(94.32, -14.60, 59.42)
CIE-LCHlch(94.32, 61.19, 103.80°)
OKLaboklab(94.6% -0.0432 0.1394)
OKLCHoklch(94.6% 0.146 107.2)
XYZxyz(74.4542, 86.0159, 30.4464)
Luminance0.8601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F478 #787CF8
analogous
#F8B478 #F8F478 #BCF878
triadic
#F8F478 #78F8F4 #F478F8
tetradic
#F8F478 #78F8B4 #787CF8 #F878BC
square
#F8F478 #78F8B4 #787CF8 #F878BC
split-complementary
#F8F478 #78BCF8 #B478F8
monochromatic
#E9E30C #F5EF3E #F8F478 #FBF9B2 #FDFDE2

Accessibility & contrast

On white

1.15
#F8F478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.20
#F8F478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F478
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F478#FFFFFF#000000##000000
##F8F4781.001.1518.2018.20
#FFFFFF1.151.0021.0021.00
#00000018.2021.001.001.00
##00000018.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC6C
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f8f478;
/* rgb */ color: rgb(248, 244, 120);
/* oklch */ color: oklch(94.6% 0.146 107.2);
Tailwind
colors: {
  custom: {
    50: '#fdf7a2',
    500: '#f8f478',
    950: '#000000',
  },
}
SCSS
$custom: #f8f478;
$custom-light: #fdf7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f478",
  "rgb": {
    "r": 248,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 58.125,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.94596,
    "c": 0.14598,
    "h": 107.2
  },
  "luminance": 0.86014
}

Semantic roles & 50–950 ramp

primary
#F8F478
secondary
#4045D4
accent
#07E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F478

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

Preview Lab → · Contrast checker → · Palette generator →

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