#787A1A#787A1A

#787A1A 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#787A1A
RGBrgb(120, 122, 26)
HSLhsl(61, 65%, 29%)
HSVhsv(61, 79%, 48%)
CMYKcmyk(1.6%, 0%, 78.7%, 52.2%)
CIE-LABlab(49.48, -12.69, 48.32)
CIE-LCHlch(49.48, 49.96, 104.71°)
OKLaboklab(56.01% -0.0401 0.1058)
OKLCHoklch(56.01% 0.113 110.8)
XYZxyz(14.8922, 17.9871, 3.6645)
Luminance0.1799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A1A #1C1A7A
analogous
#7A4C1A #787A1A #487A1A
triadic
#787A1A #1A787A #7A1A78
tetradic
#787A1A #1A7A4C #1C1A7A #7A1A48
square
#787A1A #1A7A4C #1C1A7A #7A1A48
split-complementary
#787A1A #1A487A #4C1A7A
monochromatic
#191905 #46480F #787A1A #AAAC25 #D2D539

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A1A#FFFFFF#000000##000000
##787A1A1.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)
#847403
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a1a;
/* rgb */ color: rgb(120, 122, 26);
/* oklch */ color: oklch(56.0% 0.113 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a05f',
    500: '#787a1a',
    950: '#000000',
  },
}
SCSS
$custom: #787a1a;
$custom-light: #a2a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#787a1a",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 61.25,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56014,
    "c": 0.11314,
    "h": 110.8
  },
  "luminance": 0.17987
}

Semantic roles & 50–950 ramp

primary
#787A1A
secondary
#4441AE
accent
#40E843
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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