#F8F058#F8F058

#F8F058 is a very light, vivid yellow. Relative luminance 0.830; OKLCH L 93.5% C 0.168 H 106.3°. Best body text is #000000 at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#F8F058
RGBrgb(248, 240, 88)
HSLhsl(57, 92%, 66%)
HSVhsv(57, 65%, 97%)
CMYKcmyk(0%, 3.2%, 64.5%, 2.7%)
CIE-LABlab(93.01, -14.84, 71.53)
CIE-LCHlch(93.01, 73.05, 101.72°)
OKLaboklab(93.46% -0.0472 0.1613)
OKLCHoklch(93.46% 0.168 106.3)
XYZxyz(71.6355, 82.9836, 21.4746)
Luminance0.8298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F058 #5860F8
analogous
#F8A058 #F8F058 #B0F858
triadic
#F8F058 #58F8F0 #F058F8
tetradic
#F8F058 #58F8A0 #5860F8 #F858B0
square
#F8F058 #58F8A0 #5860F8 #F858B0
split-complementary
#F8F058 #58B0F8 #A058F8
monochromatic
#CDC309 #F6EB1D #F8F058 #FAF593 #FDFBCD

Accessibility & contrast

On white

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

On black

17.60
#F8F058 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F058
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F058#FFFFFF#000000##000000
##F8F0581.001.1917.6017.60
#FFFFFF1.191.0021.0021.00
#00000017.6021.001.001.00
##00000017.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE744
Deuteranopia (green-blind)
#FFEE62
Tritanopia (blue-blind)
#FFE1D1
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f8f058;
/* rgb */ color: rgb(248, 240, 88);
/* oklch */ color: oklch(93.5% 0.168 106.3);
Tailwind
colors: {
  custom: {
    50: '#fef48e',
    500: '#f8f058',
    950: '#000000',
  },
}
SCSS
$custom: #f8f058;
$custom-light: #fef48e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f058",
  "rgb": {
    "r": 248,
    "g": 240,
    "b": 88
  },
  "hsl": {
    "h": 57,
    "s": 91.954,
    "l": 65.882
  },
  "oklch": {
    "l": 0.93461,
    "c": 0.16806,
    "h": 106.3
  },
  "luminance": 0.82981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F058

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

Preview Lab → · Contrast checker → · Palette generator →

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