#878F1F#878F1F

#878F1F is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.3% C 0.129 H 113.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#878F1F
RGBrgb(135, 143, 31)
HSLhsl(64, 64%, 34%)
HSVhsv(64, 78%, 56%)
CMYKcmyk(5.6%, 0%, 78.3%, 43.9%)
CIE-LABlab(56.97, -16.84, 53.98)
CIE-LCHlch(56.97, 56.55, 107.32°)
OKLaboklab(62.33% -0.052 0.1182)
OKLCHoklch(62.33% 0.129 113.8)
XYZxyz(20.0621, 24.8952, 5.0445)
Luminance0.2490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F1F #271F8F
analogous
#8F5F1F #878F1F #4F8F1F
triadic
#878F1F #1F878F #8F1F87
tetradic
#878F1F #1F8F5F #271F8F #8F1F4F
square
#878F1F #1F8F5F #271F8F #8F1F4F
split-complementary
#878F1F #1F4F8F #5F1F8F
monochromatic
#282A09 #585D14 #878F1F #B6C12A #CFD94F

Accessibility & contrast

On white

3.51
#878F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#878F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878F1F
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878F1F#FFFFFF#000000##000000
##878F1F1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8801
Deuteranopia (green-blind)
#9A8A29
Tritanopia (blue-blind)
#90867A
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f1f;
/* rgb */ color: rgb(135, 143, 31);
/* oklch */ color: oklch(62.3% 0.129 113.8);
Tailwind
colors: {
  custom: {
    50: '#adaf65',
    500: '#878f1f',
    950: '#000000',
  },
}
SCSS
$custom: #878f1f;
$custom-light: #adaf65;
$custom-dark: #000000;
JSON
{
  "hex": "#878f1f",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 64.286,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.62331,
    "c": 0.12913,
    "h": 113.8
  },
  "luminance": 0.24895
}

Semantic roles & 50–950 ramp

primary
#878F1F
secondary
#564EBC
accent
#40E74C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#878F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva