#787A1B#787A1B

#787A1B is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.0% C 0.113 H 110.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#787A1B
RGBrgb(120, 122, 27)
HSLhsl(61, 64%, 29%)
HSVhsv(61, 78%, 48%)
CMYKcmyk(1.6%, 0%, 77.9%, 52.2%)
CIE-LABlab(49.49, -12.65, 47.98)
CIE-LCHlch(49.49, 49.62, 104.76°)
OKLaboklab(56.02% -0.0399 0.1053)
OKLCHoklch(56.02% 0.113 110.8)
XYZxyz(14.9036, 17.9917, 3.7244)
Luminance0.1799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A1B #1D1B7A
analogous
#7A4D1B #787A1B #497A1B
triadic
#787A1B #1B787A #7A1B78
tetradic
#787A1B #1B7A4D #1D1B7A #7A1B49
square
#787A1B #1B7A4D #1D1B7A #7A1B49
split-complementary
#787A1B #1B497A #4D1B7A
monochromatic
#191906 #474810 #787A1B #A9AC26 #D1D43C

Accessibility & contrast

On white

4.57
#787A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#787A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A1B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A1B#FFFFFF#000000##000000
##787A1B1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#847405
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a1b;
/* rgb */ color: rgb(120, 122, 27);
/* oklch */ color: oklch(56.0% 0.113 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a060',
    500: '#787a1b',
    950: '#000000',
  },
}
SCSS
$custom: #787a1b;
$custom-light: #a2a060;
$custom-dark: #000000;
JSON
{
  "hex": "#787a1b",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 61.263,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5602,
    "c": 0.11257,
    "h": 110.8
  },
  "luminance": 0.17991
}

Semantic roles & 50–950 ramp

primary
#787A1B
secondary
#4543AE
accent
#41E745
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A1B

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

Preview Lab → · Contrast checker → · Palette generator →

#787A1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva