#F7D158#F7D158

#F7D158 is a very light, vivid yellow. Relative luminance 0.661; OKLCH L 87.1% C 0.144 H 91.6°. Best body text is #000000 at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#F7D158
RGBrgb(247, 209, 88)
HSLhsl(46, 91%, 66%)
HSVhsv(46, 64%, 97%)
CMYKcmyk(0%, 15.4%, 64.4%, 3.1%)
CIE-LABlab(85.04, 0.26, 63.09)
CIE-LCHlch(85.04, 63.09, 89.76°)
OKLaboklab(87.12% -0.004 0.1435)
OKLCHoklch(87.12% 0.144 91.6)
XYZxyz(62.9228, 66.0832, 18.6717)
Luminance0.6608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7D158 #587EF7
analogous
#F78158 #F7D158 #CEF758
triadic
#F7D158 #58F7D1 #D158F7
tetradic
#F7D158 #58F781 #587EF7 #F758CE
square
#F7D158 #58F781 #587EF7 #F758CE
split-complementary
#F7D158 #58CEF7 #8158F7
monochromatic
#CB9D0A #F4C11E #F7D158 #FAE192 #FDF1CD

Accessibility & contrast

On white

1.48
#F7D158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.22
#F7D158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7D158
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7D158#FFFFFF#000000##000000
##F7D1581.001.4814.2214.22
#FFFFFF1.481.0021.0021.00
#00000014.2221.001.001.00
##00000014.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE4A
Deuteranopia (green-blind)
#F0D95E
Tritanopia (blue-blind)
#FFC1B7
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f7d158;
/* rgb */ color: rgb(247, 209, 88);
/* oklch */ color: oklch(87.1% 0.144 91.6);
Tailwind
colors: {
  custom: {
    50: '#fede8c',
    500: '#f7d158',
    950: '#000000',
  },
}
SCSS
$custom: #f7d158;
$custom-light: #fede8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f7d158",
  "rgb": {
    "r": 247,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 45.66,
    "s": 90.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.87122,
    "c": 0.14354,
    "h": 91.6
  },
  "luminance": 0.6608
}

Semantic roles & 50–950 ramp

primary
#F7D158
secondary
#2C51C7
accent
#37E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F7D158

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

Preview Lab → · Contrast checker → · Palette generator →

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