#F5F170#F5F170

#F5F170 is a very light, vivid yellow. Relative luminance 0.835; OKLCH L 93.6% C 0.150 H 107.3°. Best body text is #000000 at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#F5F170
RGBrgb(245, 241, 112)
HSLhsl(58, 87%, 70%)
HSVhsv(58, 54%, 96%)
CMYKcmyk(0%, 1.6%, 54.3%, 3.9%)
CIE-LABlab(93.23, -14.95, 61.68)
CIE-LCHlch(93.23, 63.47, 103.62°)
OKLaboklab(93.65% -0.0448 0.1436)
OKLCHoklch(93.65% 0.15 107.3)
XYZxyz(72.0382, 83.4950, 27.6475)
Luminance0.8349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F170 #7074F5
analogous
#F5AE70 #F5F170 #B7F570
triadic
#F5F170 #70F5F1 #F170F5
tetradic
#F5F170 #70F5AE #7074F5 #F570B7
square
#F5F170 #70F5AE #7074F5 #F570B7
split-complementary
#F5F170 #70B7F5 #AE70F5
monochromatic
#DBD50F #F1EB37 #F5F170 #F9F7A9 #FDFCE2

Accessibility & contrast

On white

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

On black

17.70
#F5F170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F170
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F170#FFFFFF#000000##000000
##F5F1701.001.1917.7017.70
#FFFFFF1.191.0021.0021.00
#00000017.7021.001.001.00
##00000017.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE963
Deuteranopia (green-blind)
#FFEE77
Tritanopia (blue-blind)
#FFE3D4
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f5f170;
/* rgb */ color: rgb(245, 241, 112);
/* oklch */ color: oklch(93.6% 0.150 107.3);
Tailwind
colors: {
  custom: {
    50: '#fbf59d',
    500: '#f5f170',
    950: '#000000',
  },
}
SCSS
$custom: #f5f170;
$custom-light: #fbf59d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f170",
  "rgb": {
    "r": 245,
    "g": 241,
    "b": 112
  },
  "hsl": {
    "h": 58.195,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.93647,
    "c": 0.15039,
    "h": 107.3
  },
  "luminance": 0.83493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F5F170

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

Preview Lab → · Contrast checker → · Palette generator →

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