#F8F054#F8F054

#F8F054 is a very light, vivid yellow. Relative luminance 0.829; OKLCH L 93.4% C 0.171 H 106.4°. Best body text is #000000 at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#F8F054
RGBrgb(248, 240, 84)
HSLhsl(57, 92%, 65%)
HSVhsv(57, 66%, 97%)
CMYKcmyk(0%, 3.2%, 66.1%, 2.7%)
CIE-LABlab(92.98, -15.06, 73.03)
CIE-LCHlch(92.98, 74.57, 101.65°)
OKLaboklab(93.43% -0.0482 0.1639)
OKLCHoklch(93.43% 0.171 106.4)
XYZxyz(71.4744, 82.9192, 20.6258)
Luminance0.8292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F054 #545CF8
analogous
#F89E54 #F8F054 #AEF854
triadic
#F8F054 #54F8F0 #F054F8
tetradic
#F8F054 #54F89E #545CF8 #F854AE
square
#F8F054 #54F89E #545CF8 #F854AE
split-complementary
#F8F054 #54AEF8 #9E54F8
monochromatic
#C9C008 #F6EB19 #F8F054 #FAF58F #FDFACA

Accessibility & contrast

On white

1.19
#F8F054 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.58
#F8F054 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F054
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F054#FFFFFF#000000##000000
##F8F0541.001.1917.5817.58
#FFFFFF1.191.0021.0021.00
#00000017.5821.001.001.00
##00000017.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE73E
Deuteranopia (green-blind)
#FFEE5E
Tritanopia (blue-blind)
#FFE1D0
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f8f054;
/* rgb */ color: rgb(248, 240, 84);
/* oklch */ color: oklch(93.4% 0.171 106.4);
Tailwind
colors: {
  custom: {
    50: '#fef48c',
    500: '#f8f054',
    950: '#000000',
  },
}
SCSS
$custom: #f8f054;
$custom-light: #fef48c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f054",
  "rgb": {
    "r": 248,
    "g": 240,
    "b": 84
  },
  "hsl": {
    "h": 57.073,
    "s": 92.135,
    "l": 65.098
  },
  "oklch": {
    "l": 0.9343,
    "c": 0.17081,
    "h": 106.4
  },
  "luminance": 0.82917
}

Semantic roles & 50–950 ramp

primary
#F8F054
secondary
#2B32C6
accent
#0BE600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F8F054

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

Preview Lab → · Contrast checker → · Palette generator →

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