#F8F671#F8F671

#F8F671 is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 94.9% C 0.154 H 108.2°. Best body text is #000000 at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#F8F671
RGBrgb(248, 246, 113)
HSLhsl(59, 91%, 71%)
HSVhsv(59, 54%, 97%)
CMYKcmyk(0%, 0.8%, 54.4%, 2.7%)
CIE-LABlab(94.76, -16.12, 63.05)
CIE-LCHlch(94.76, 65.08, 104.34°)
OKLaboklab(94.93% -0.0482 0.1465)
OKLCHoklch(94.93% 0.154 108.2)
XYZxyz(74.6499, 87.0623, 28.4919)
Luminance0.8706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F671 #7173F8
analogous
#F8B271 #F8F671 #B6F871
triadic
#F8F671 #71F8F6 #F671F8
tetradic
#F8F671 #71F8B2 #7173F8 #F871B6
square
#F8F671 #71F8B2 #7173F8 #F871B6
split-complementary
#F8F671 #71B6F8 #B271F8
monochromatic
#E3E00B #F5F237 #F8F671 #FBFAAB #FEFDE2

Accessibility & contrast

On white

1.14
#F8F671 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.41
#F8F671 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F671
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F671#FFFFFF#000000##000000
##F8F6711.001.1418.4118.41
#FFFFFF1.141.0021.0021.00
#00000018.4121.001.001.00
##00000018.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED63
Deuteranopia (green-blind)
#FFF278
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f8f671;
/* rgb */ color: rgb(248, 246, 113);
/* oklch */ color: oklch(94.9% 0.154 108.2);
Tailwind
colors: {
  custom: {
    50: '#fdf99e',
    500: '#f8f671',
    950: '#000000',
  },
}
SCSS
$custom: #f8f671;
$custom-light: #fdf99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f671",
  "rgb": {
    "r": 248,
    "g": 246,
    "b": 113
  },
  "hsl": {
    "h": 59.111,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94929,
    "c": 0.15427,
    "h": 108.2
  },
  "luminance": 0.8706
}

Semantic roles & 50–950 ramp

primary
#F8F671
secondary
#3A3DD3
accent
#03E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F671

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

Preview Lab → · Contrast checker → · Palette generator →

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