#F5F173#F5F173

#F5F173 is a very light, vivid yellow. Relative luminance 0.836; OKLCH L 93.7% C 0.148 H 107.3°. Best body text is #000000 at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#F5F173
RGBrgb(245, 241, 115)
HSLhsl(58, 87%, 71%)
HSVhsv(58, 53%, 96%)
CMYKcmyk(0%, 1.6%, 53.1%, 3.9%)
CIE-LABlab(93.26, -14.72, 60.38)
CIE-LCHlch(93.26, 62.15, 103.70°)
OKLaboklab(93.68% -0.0439 0.1411)
OKLCHoklch(93.68% 0.148 107.3)
XYZxyz(72.2080, 83.5629, 28.5419)
Luminance0.8356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F173 #7377F5
analogous
#F5B073 #F5F173 #B8F573
triadic
#F5F173 #73F5F1 #F173F5
tetradic
#F5F173 #73F5B0 #7377F5 #F573B8
square
#F5F173 #73F5B0 #7377F5 #F573B8
split-complementary
#F5F173 #73B8F5 #B073F5
monochromatic
#DED710 #F1EB3A #F5F173 #F9F7AC #FDFCE2

Accessibility & contrast

On white

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

On black

17.71
#F5F173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F173
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F173#FFFFFF#000000##000000
##F5F1731.001.1917.7117.71
#FFFFFF1.191.0021.0021.00
#00000017.7121.001.001.00
##00000017.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE967
Deuteranopia (green-blind)
#FFEE7A
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f173;
/* rgb */ color: rgb(245, 241, 115);
/* oklch */ color: oklch(93.7% 0.148 107.3);
Tailwind
colors: {
  custom: {
    50: '#fbf59f',
    500: '#f5f173',
    950: '#000000',
  },
}
SCSS
$custom: #f5f173;
$custom-light: #fbf59f;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f173",
  "rgb": {
    "r": 245,
    "g": 241,
    "b": 115
  },
  "hsl": {
    "h": 58.154,
    "s": 86.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.9368,
    "c": 0.14773,
    "h": 107.3
  },
  "luminance": 0.83561
}

Semantic roles & 50–950 ramp

primary
#F5F173
secondary
#3D41CF
accent
#09E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F173

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

Preview Lab → · Contrast checker → · Palette generator →

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