#78841B#78841B

#78841B is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.4% C 0.124 H 116.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#78841B
RGBrgb(120, 132, 27)
HSLhsl(67, 66%, 31%)
HSVhsv(67, 80%, 52%)
CMYKcmyk(9.1%, 0%, 79.5%, 48.2%)
CIE-LABlab(52.48, -17.98, 50.74)
CIE-LCHlch(52.48, 53.83, 109.51°)
OKLaboklab(58.42% -0.0547 0.1111)
OKLCHoklch(58.42% 0.124 116.2)
XYZxyz(16.1953, 20.5750, 4.1549)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78841B #271B84
analogous
#845B1B #78841B #43841B
triadic
#78841B #1B7884 #841B78
tetradic
#78841B #1B845B #271B84 #841B43
square
#78841B #1B845B #271B84 #841B43
split-complementary
#78841B #1B4384 #5B1B84
monochromatic
#1C1E06 #4A5111 #78841B #A6B725 #C7D841

Accessibility & contrast

On white

4.11
#78841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#78841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #78841B
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78841B#FFFFFF#000000##000000
##78841B1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E25
Tritanopia (blue-blind)
#807C71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #78841b;
/* rgb */ color: rgb(120, 132, 27);
/* oklch */ color: oklch(58.4% 0.124 116.2);
Tailwind
colors: {
  custom: {
    50: '#a2a761',
    500: '#78841b',
    950: '#000000',
  },
}
SCSS
$custom: #78841b;
$custom-light: #a2a761;
$custom-dark: #000000;
JSON
{
  "hex": "#78841b",
  "rgb": {
    "r": 120,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 66.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58421,
    "c": 0.12383,
    "h": 116.2
  },
  "luminance": 0.20575
}

Semantic roles & 50–950 ramp

primary
#78841B
secondary
#5143B7
accent
#3FE952
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #78841B

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

Preview Lab → · Contrast checker → · Palette generator →

#78841B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva