#787A1D#787A1D

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

Color values

HEX#787A1D
RGBrgb(120, 122, 29)
HSLhsl(61, 62%, 30%)
HSVhsv(61, 76%, 48%)
CMYKcmyk(1.6%, 0%, 76.2%, 52.2%)
CIE-LABlab(49.50, -12.55, 47.28)
CIE-LCHlch(49.50, 48.92, 104.87°)
OKLaboklab(56.03% -0.0395 0.1041)
OKLCHoklch(56.03% 0.111 110.8)
XYZxyz(14.9276, 18.0013, 3.8504)
Luminance0.1800 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A1D #1F1D7A
analogous
#7A4D1D #787A1D #4A7A1D
triadic
#787A1D #1D787A #7A1D78
tetradic
#787A1D #1D7A4D #1F1D7A #7A1D4A
square
#787A1D #1D7A4D #1F1D7A #7A1D4A
split-complementary
#787A1D #1D4A7A #4D1D7A
monochromatic
#181906 #474911 #787A1D #A9AB29 #CED240

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A1D#FFFFFF#000000##000000
##787A1D1.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)
#847409
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a1d;
/* rgb */ color: rgb(120, 122, 29);
/* oklch */ color: oklch(56.0% 0.111 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a061',
    500: '#787a1d',
    950: '#000000',
  },
}
SCSS
$custom: #787a1d;
$custom-light: #a2a061;
$custom-dark: #000000;
JSON
{
  "hex": "#787a1d",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 29
  },
  "hsl": {
    "h": 61.29,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56033,
    "c": 0.11137,
    "h": 110.8
  },
  "luminance": 0.18001
}

Semantic roles & 50–950 ramp

primary
#787A1D
secondary
#4745AE
accent
#43E547
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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