#878F12#878F12

#878F12 is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.3% C 0.135 H 113.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#878F12
RGBrgb(135, 143, 18)
HSLhsl(64, 78%, 32%)
HSVhsv(64, 87%, 56%)
CMYKcmyk(5.6%, 0%, 87.4%, 43.9%)
CIE-LABlab(56.92, -17.29, 57.52)
CIE-LCHlch(56.92, 60.07, 106.73°)
OKLaboklab(62.27% -0.0542 0.1235)
OKLCHoklch(62.27% 0.135 113.7)
XYZxyz(19.9240, 24.8399, 4.3172)
Luminance0.2484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878F12 #1A128F
analogous
#8F5912 #878F12 #498F12
triadic
#878F12 #12878F #8F1287
tetradic
#878F12 #128F59 #1A128F #8F1249
square
#878F12 #128F59 #1A128F #8F1249
split-complementary
#878F12 #12498F #59128F
monochromatic
#202204 #54590B #878F12 #BAC519 #DAE636

Accessibility & contrast

On white

3.52
#878F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#878F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878F12
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878F12#FFFFFF#000000##000000
##878F121.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#9A8A20
Tritanopia (blue-blind)
#918679
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #878f12;
/* rgb */ color: rgb(135, 143, 18);
/* oklch */ color: oklch(62.3% 0.135 113.7);
Tailwind
colors: {
  custom: {
    50: '#aeaf60',
    500: '#878f12',
    950: '#000000',
  },
}
SCSS
$custom: #878f12;
$custom-light: #aeaf60;
$custom-dark: #000000;
JSON
{
  "hex": "#878f12",
  "rgb": {
    "r": 135,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 63.84,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.62271,
    "c": 0.13484,
    "h": 113.7
  },
  "luminance": 0.24839
}

Semantic roles & 50–950 ramp

primary
#878F12
secondary
#423AC3
accent
#34F440
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #878F12

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

Preview Lab → · Contrast checker → · Palette generator →

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