#787E1A#787E1A

#787E1A is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.118 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#787E1A
RGBrgb(120, 126, 26)
HSLhsl(64, 66%, 30%)
HSVhsv(64, 79%, 49%)
CMYKcmyk(4.8%, 0%, 79.4%, 50.6%)
CIE-LABlab(50.68, -14.85, 49.42)
CIE-LCHlch(50.68, 51.60, 106.72°)
OKLaboklab(56.97% -0.0461 0.1081)
OKLCHoklch(56.97% 0.118 113.1)
XYZxyz(15.3935, 18.9897, 3.8316)
Luminance0.1899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E1A #201A7E
analogous
#7E521A #787E1A #467E1A
triadic
#787E1A #1A787E #7E1A78
tetradic
#787E1A #1A7E52 #201A7E #7E1A46
square
#787E1A #1A7E52 #201A7E #7E1A46
split-complementary
#787E1A #1A467E #521A7E
monochromatic
#181905 #484B10 #787E1A #A8B124 #CDD73C

Accessibility & contrast

On white

4.38
#787E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#787E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E1A
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E1A#FFFFFF#000000##000000
##787E1A1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A23
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e1a;
/* rgb */ color: rgb(120, 126, 26);
/* oklch */ color: oklch(57.0% 0.118 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a360',
    500: '#787e1a',
    950: '#000000',
  },
}
SCSS
$custom: #787e1a;
$custom-light: #a2a360;
$custom-dark: #000000;
JSON
{
  "hex": "#787e1a",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 63.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5697,
    "c": 0.11754,
    "h": 113.1
  },
  "luminance": 0.18989
}

Semantic roles & 50–950 ramp

primary
#787E1A
secondary
#4842B2
accent
#3FE949
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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