#787D1C#787D1C

#787D1C is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.115 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#787D1C
RGBrgb(120, 125, 28)
HSLhsl(63, 63%, 30%)
HSVhsv(63, 78%, 49%)
CMYKcmyk(4%, 0%, 77.6%, 51%)
CIE-LABlab(50.39, -14.22, 48.47)
CIE-LCHlch(50.39, 50.51, 106.35°)
OKLaboklab(56.74% -0.0442 0.1065)
OKLCHoklch(56.74% 0.115 112.6)
XYZxyz(15.2894, 18.7445, 3.9110)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D1C #211C7D
analogous
#7D521C #787D1C #477D1C
triadic
#787D1C #1C787D #7D1C78
tetradic
#787D1C #1C7D52 #211C7D #7D1C47
square
#787D1C #1C7D52 #211C7D #7D1C47
split-complementary
#787D1C #1C477D #521C7D
monochromatic
#181906 #484B11 #787D1C #A8AF27 #CCD43F

Accessibility & contrast

On white

4.42
#787D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#787D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D1C
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D1C#FFFFFF#000000##000000
##787D1C1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877705
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d1c;
/* rgb */ color: rgb(120, 125, 28);
/* oklch */ color: oklch(56.7% 0.115 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a261',
    500: '#787d1c',
    950: '#000000',
  },
}
SCSS
$custom: #787d1c;
$custom-light: #a2a261;
$custom-dark: #000000;
JSON
{
  "hex": "#787d1c",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 63.093,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.11529,
    "h": 112.6
  },
  "luminance": 0.18744
}

Semantic roles & 50–950 ramp

primary
#787D1C
secondary
#4A44B1
accent
#41E64A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #787D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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