#F5F875#F5F875

#F5F875 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.153 H 110.2°. Best body text is #000000 at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#F5F875
RGBrgb(245, 248, 117)
HSLhsl(61, 90%, 72%)
HSVhsv(61, 53%, 97%)
CMYKcmyk(1.2%, 0%, 52.8%, 2.7%)
CIE-LABlab(95.09, -17.96, 61.60)
CIE-LCHlch(95.09, 64.16, 106.26°)
OKLaboklab(95.15% -0.0529 0.1439)
OKLCHoklch(95.15% 0.153 110.2)
XYZxyz(74.4363, 87.8334, 29.8586)
Luminance0.8783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F875 #7875F8
analogous
#F8BA75 #F5F875 #B4F875
triadic
#F5F875 #75F5F8 #F875F5
tetradic
#F5F875 #75F8BA #7875F8 #F875B4
square
#F5F875 #75F8BA #7875F8 #F875B4
split-complementary
#F5F875 #75B4F8 #BA75F8
monochromatic
#E2E70C #F1F53B #F5F875 #F9FBAF #FDFEE2

Accessibility & contrast

On white

1.13
#F5F875 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.57
#F5F875 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F875
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F875#FFFFFF#000000##000000
##F5F8751.001.1318.5718.57
#FFFFFF1.131.0021.0021.00
#00000018.5721.001.001.00
##00000018.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF68
Deuteranopia (green-blind)
#FFF37C
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f5f875;
/* rgb */ color: rgb(245, 248, 117);
/* oklch */ color: oklch(95.1% 0.153 110.2);
Tailwind
colors: {
  custom: {
    50: '#fbfaa0',
    500: '#f5f875',
    950: '#000000',
  },
}
SCSS
$custom: #f5f875;
$custom-light: #fbfaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f875",
  "rgb": {
    "r": 245,
    "g": 248,
    "b": 117
  },
  "hsl": {
    "h": 61.374,
    "s": 90.345,
    "l": 71.569
  },
  "oklch": {
    "l": 0.95145,
    "c": 0.15332,
    "h": 110.2
  },
  "luminance": 0.87832
}

Semantic roles & 50–950 ramp

primary
#F5F875
secondary
#413ED3
accent
#00E605
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F875

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

Preview Lab → · Contrast checker → · Palette generator →

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