#F8F958#F8F958

#F8F958 is a very light, vivid yellow. Relative luminance 0.884; OKLCH L 95.3% C 0.177 H 109.7°. Best body text is #000000 at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#F8F958
RGBrgb(248, 249, 88)
HSLhsl(60, 93%, 66%)
HSVhsv(60, 65%, 98%)
CMYKcmyk(0.4%, 0%, 64.7%, 2.4%)
CIE-LABlab(95.34, -19.19, 73.93)
CIE-LCHlch(95.34, 76.38, 104.55°)
OKLaboklab(95.32% -0.0595 0.1664)
OKLCHoklch(95.32% 0.177 109.7)
XYZxyz(74.3510, 88.4145, 22.3797)
Luminance0.8841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F958 #5958F9
analogous
#F9A958 #F8F958 #A7F958
triadic
#F8F958 #58F8F9 #F958F8
tetradic
#F8F958 #58F9A9 #5958F9 #F958A7
square
#F8F958 #58F9A9 #5958F9 #F958A7
split-complementary
#F8F958 #58A7F9 #A958F9
monochromatic
#CECF07 #F6F71D #F8F958 #FAFB93 #FDFDCE

Accessibility & contrast

On white

1.12
#F8F958 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.68
#F8F958 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F958
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F958#FFFFFF#000000##000000
##F8F9581.001.1218.6818.68
#FFFFFF1.121.0021.0021.00
#00000018.6821.001.001.00
##00000018.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF41
Deuteranopia (green-blind)
#FFF463
Tritanopia (blue-blind)
#FFEAD8
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f958;
/* rgb */ color: rgb(248, 249, 88);
/* oklch */ color: oklch(95.3% 0.177 109.7);
Tailwind
colors: {
  custom: {
    50: '#fefb8f',
    500: '#f8f958',
    950: '#000000',
  },
}
SCSS
$custom: #f8f958;
$custom-light: #fefb8f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f958",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 88
  },
  "hsl": {
    "h": 60.373,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.95318,
    "c": 0.17668,
    "h": 109.7
  },
  "luminance": 0.88412
}

Semantic roles & 50–950 ramp

primary
#F8F958
secondary
#2C2BCA
accent
#00E601
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F8F958

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

Preview Lab → · Contrast checker → · Palette generator →

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