#787C1B#787C1B

#787C1B 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#787C1B
RGBrgb(120, 124, 27)
HSLhsl(62, 64%, 30%)
HSVhsv(62, 78%, 49%)
CMYKcmyk(3.2%, 0%, 78.2%, 51.4%)
CIE-LABlab(50.08, -13.73, 48.54)
CIE-LCHlch(50.08, 50.44, 105.79°)
OKLaboklab(56.5% -0.0429 0.1064)
OKLCHoklch(56.5% 0.115 112)
XYZxyz(15.1517, 18.4879, 3.8071)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C1B #1F1B7C
analogous
#7C501B #787C1B #487C1B
triadic
#787C1B #1B787C #7C1B78
tetradic
#787C1B #1B7C50 #1F1B7C #7C1B48
square
#787C1B #1B7C50 #1F1B7C #7C1B48
split-complementary
#787C1B #1B487C #501B7C
monochromatic
#181905 #474A10 #787C1B #A9AE26 #CED53D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787C1B#FFFFFF#000000##000000
##787C1B1.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)
#867604
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c1b;
/* rgb */ color: rgb(120, 124, 27);
/* oklch */ color: oklch(56.5% 0.115 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a160',
    500: '#787c1b',
    950: '#000000',
  },
}
SCSS
$custom: #787c1b;
$custom-light: #a2a160;
$custom-dark: #000000;
JSON
{
  "hex": "#787c1b",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 62.474,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56497,
    "c": 0.11476,
    "h": 112
  },
  "luminance": 0.18488
}

Semantic roles & 50–950 ramp

primary
#787C1B
secondary
#4743B0
accent
#41E747
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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