#787C1E#787C1E

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

Color values

HEX#787C1E
RGBrgb(120, 124, 30)
HSLhsl(63, 61%, 30%)
HSVhsv(63, 76%, 49%)
CMYKcmyk(3.2%, 0%, 75.8%, 51.4%)
CIE-LABlab(50.10, -13.59, 47.48)
CIE-LCHlch(50.10, 49.39, 105.97°)
OKLaboklab(56.52% -0.0423 0.1048)
OKLCHoklch(56.52% 0.113 112)
XYZxyz(15.1882, 18.5025, 3.9993)
Luminance0.1850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C1E #221E7C
analogous
#7C511E #787C1E #497C1E
triadic
#787C1E #1E787C #7C1E78
tetradic
#787C1E #1E7C51 #221E7C #7C1E49
square
#787C1E #1E7C51 #221E7C #7C1E49
split-complementary
#787C1E #1E497C #511E7C
monochromatic
#191906 #484B12 #787C1E #A8AD2A #CBD143

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787C1E#FFFFFF#000000##000000
##787C1E1.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)
#86760B
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c1e;
/* rgb */ color: rgb(120, 124, 30);
/* oklch */ color: oklch(56.5% 0.113 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a162',
    500: '#787c1e',
    950: '#000000',
  },
}
SCSS
$custom: #787c1e;
$custom-light: #a2a162;
$custom-dark: #000000;
JSON
{
  "hex": "#787c1e",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 30
  },
  "hsl": {
    "h": 62.553,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56517,
    "c": 0.11296,
    "h": 112
  },
  "luminance": 0.18502
}

Semantic roles & 50–950 ramp

primary
#787C1E
secondary
#4B46AF
accent
#44E44A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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