#F8D771#F8D771

#F8D771 is a very light, vivid yellow. Relative luminance 0.698; OKLCH L 88.7% C 0.127 H 91.8°. Best body text is #000000 at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#F8D771
RGBrgb(248, 215, 113)
HSLhsl(45, 91%, 71%)
HSVhsv(45, 54%, 97%)
CMYKcmyk(0%, 13.3%, 54.4%, 2.7%)
CIE-LABlab(86.88, -0.68, 53.92)
CIE-LCHlch(86.88, 53.92, 90.72°)
OKLaboklab(88.67% -0.0039 0.1268)
OKLCHoklch(88.67% 0.127 91.8)
XYZxyz(65.9951, 69.7528, 25.6070)
Luminance0.6975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D771 #7192F8
analogous
#F89371 #F8D771 #D6F871
triadic
#F8D771 #71F8D7 #D771F8
tetradic
#F8D771 #71F893 #7192F8 #F871D6
square
#F8D771 #71F893 #7192F8 #F871D6
split-complementary
#F8D771 #71D6F8 #9371F8
monochromatic
#E3AF0B #F5C737 #F8D771 #FBE7AB #FEF7E2

Accessibility & contrast

On white

1.40
#F8D771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.95
#F8D771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D771
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D771#FFFFFF#000000##000000
##F8D7711.001.4014.9514.95
#FFFFFF1.401.0021.0021.00
#00000014.9521.001.001.00
##00000014.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD468
Deuteranopia (green-blind)
#F2DE75
Tritanopia (blue-blind)
#FFC9C0
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f8d771;
/* rgb */ color: rgb(248, 215, 113);
/* oklch */ color: oklch(88.7% 0.127 91.8);
Tailwind
colors: {
  custom: {
    50: '#fde39c',
    500: '#f8d771',
    950: '#000000',
  },
}
SCSS
$custom: #f8d771;
$custom-light: #fde39c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d771",
  "rgb": {
    "r": 248,
    "g": 215,
    "b": 113
  },
  "hsl": {
    "h": 45.333,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.88671,
    "c": 0.12688,
    "h": 91.8
  },
  "luminance": 0.6975
}

Semantic roles & 50–950 ramp

primary
#F8D771
secondary
#3A60D3
accent
#38E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D771

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

Preview Lab → · Contrast checker → · Palette generator →

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