#787C1A#787C1A

#787C1A is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.115 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#787C1A
RGBrgb(120, 124, 26)
HSLhsl(62, 65%, 29%)
HSVhsv(62, 79%, 49%)
CMYKcmyk(3.2%, 0%, 79%, 51.4%)
CIE-LABlab(50.08, -13.77, 48.87)
CIE-LCHlch(50.08, 50.78, 105.74°)
OKLaboklab(56.49% -0.0431 0.1069)
OKLCHoklch(56.49% 0.115 112)
XYZxyz(15.1403, 18.4833, 3.7472)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C1A #1E1A7C
analogous
#7C4F1A #787C1A #477C1A
triadic
#787C1A #1A787C #7C1A78
tetradic
#787C1A #1A7C4F #1E1A7C #7C1A47
square
#787C1A #1A7C4F #1E1A7C #7C1A47
split-complementary
#787C1A #1A477C #4F1A7C
monochromatic
#181905 #47490F #787C1A #A9AF25 #CFD63B

Accessibility & contrast

On white

4.47
#787C1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#787C1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C1A
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C1A#FFFFFF#000000##000000
##787C1A1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#867601
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c1a;
/* rgb */ color: rgb(120, 124, 26);
/* oklch */ color: oklch(56.5% 0.115 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a160',
    500: '#787c1a',
    950: '#000000',
  },
}
SCSS
$custom: #787c1a;
$custom-light: #a2a160;
$custom-dark: #000000;
JSON
{
  "hex": "#787c1a",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 62.449,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56491,
    "c": 0.11532,
    "h": 112
  },
  "luminance": 0.18483
}

Semantic roles & 50–950 ramp

primary
#787C1A
secondary
#4642B0
accent
#40E846
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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