#878A1C#878A1C

#878A1C is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.1% C 0.125 H 111.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#878A1C
RGBrgb(135, 138, 28)
HSLhsl(62, 66%, 33%)
HSVhsv(62, 80%, 54%)
CMYKcmyk(2.2%, 0%, 79.7%, 45.9%)
CIE-LABlab(55.49, -14.33, 53.60)
CIE-LCHlch(55.49, 55.49, 104.97°)
OKLaboklab(61.14% -0.0453 0.1168)
OKLCHoklch(61.14% 0.125 111.2)
XYZxyz(19.2904, 23.4122, 4.6012)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878A1C #1F1C8A
analogous
#8A561C #878A1C #508A1C
triadic
#878A1C #1C878A #8A1C87
tetradic
#878A1C #1C8A56 #1F1C8A #8A1C50
square
#878A1C #1C8A56 #1F1C8A #8A1C50
split-complementary
#878A1C #1C508A #561C8A
monochromatic
#232407 #555712 #878A1C #B9BD26 #D6DA47

Accessibility & contrast

On white

3.70
#878A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#878A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #878A1C
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878A1C#FFFFFF#000000##000000
##878A1C1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#918176
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #878a1c;
/* rgb */ color: rgb(135, 138, 28);
/* oklch */ color: oklch(61.1% 0.125 111.2);
Tailwind
colors: {
  custom: {
    50: '#adab63',
    500: '#878a1c',
    950: '#000000',
  },
}
SCSS
$custom: #878a1c;
$custom-light: #adab63;
$custom-dark: #000000;
JSON
{
  "hex": "#878a1c",
  "rgb": {
    "r": 135,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 61.636,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61142,
    "c": 0.12529,
    "h": 111.2
  },
  "luminance": 0.23412
}

Semantic roles & 50–950 ramp

primary
#878A1C
secondary
#4A46BB
accent
#3FE943
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #878A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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