#F8CF54#F8CF54

#F8CF54 is a very light, vivid yellow. Relative luminance 0.652; OKLCH L 86.8% C 0.145 H 90.4°. Best body text is #000000 at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#F8CF54
RGBrgb(248, 207, 84)
HSLhsl(45, 92%, 65%)
HSVhsv(45, 66%, 97%)
CMYKcmyk(0%, 16.5%, 66.1%, 2.7%)
CIE-LABlab(84.60, 1.47, 64.34)
CIE-LCHlch(84.60, 64.36, 88.69°)
OKLaboklab(86.79% -0.0011 0.1455)
OKLCHoklch(86.79% 0.145 90.4)
XYZxyz(62.6277, 65.2258, 17.6769)
Luminance0.6522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8CF54 #547DF8
analogous
#F87D54 #F8CF54 #CFF854
triadic
#F8CF54 #54F8CF #CF54F8
tetradic
#F8CF54 #54F87D #547DF8 #F854CF
square
#F8CF54 #54F87D #547DF8 #F854CF
split-complementary
#F8CF54 #54CFF8 #7D54F8
monochromatic
#C99908 #F6BE19 #F8CF54 #FAE08F #FDF0CA

Accessibility & contrast

On white

1.50
#F8CF54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.04
#F8CF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8CF54
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8CF54#FFFFFF#000000##000000
##F8CF541.001.5014.0414.04
#FFFFFF1.501.0021.0021.00
#00000014.0421.001.001.00
##00000014.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CC45
Deuteranopia (green-blind)
#EFD85A
Tritanopia (blue-blind)
#FFBFB5
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f8cf54;
/* rgb */ color: rgb(248, 207, 84);
/* oklch */ color: oklch(86.8% 0.145 90.4);
Tailwind
colors: {
  custom: {
    50: '#fedd8a',
    500: '#f8cf54',
    950: '#000000',
  },
}
SCSS
$custom: #f8cf54;
$custom-light: #fedd8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f8cf54",
  "rgb": {
    "r": 248,
    "g": 207,
    "b": 84
  },
  "hsl": {
    "h": 45,
    "s": 92.135,
    "l": 65.098
  },
  "oklch": {
    "l": 0.86787,
    "c": 0.14549,
    "h": 90.4
  },
  "luminance": 0.65222
}

Semantic roles & 50–950 ramp

primary
#F8CF54
secondary
#2B51C6
accent
#39E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F8CF54

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

Preview Lab → · Contrast checker → · Palette generator →

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