#787C1C#787C1C

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

Color values

HEX#787C1C
RGBrgb(120, 124, 28)
HSLhsl(63, 63%, 30%)
HSVhsv(63, 77%, 49%)
CMYKcmyk(3.2%, 0%, 77.4%, 51.4%)
CIE-LABlab(50.09, -13.68, 48.19)
CIE-LCHlch(50.09, 50.10, 105.85°)
OKLaboklab(56.5% -0.0427 0.1059)
OKLCHoklch(56.5% 0.114 112)
XYZxyz(15.1635, 18.4926, 3.8690)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C1C #201C7C
analogous
#7C501C #787C1C #487C1C
triadic
#787C1C #1C787C #7C1C78
tetradic
#787C1C #1C7C50 #201C7C #7C1C48
square
#787C1C #1C7C50 #201C7C #7C1C48
split-complementary
#787C1C #1C487C #501C7C
monochromatic
#181906 #484A11 #787C1C #A8AE27 #CDD43F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787C1C#FFFFFF#000000##000000
##787C1C1.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)
#867606
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c1c;
/* rgb */ color: rgb(120, 124, 28);
/* oklch */ color: oklch(56.5% 0.114 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a161',
    500: '#787c1c',
    950: '#000000',
  },
}
SCSS
$custom: #787c1c;
$custom-light: #a2a161;
$custom-dark: #000000;
JSON
{
  "hex": "#787c1c",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 62.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.11417,
    "h": 112
  },
  "luminance": 0.18492
}

Semantic roles & 50–950 ramp

primary
#787C1C
secondary
#4844B0
accent
#42E648
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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