#787B1C#787B1C

#787B1C is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.113 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#787B1C
RGBrgb(120, 123, 28)
HSLhsl(62, 63%, 30%)
HSVhsv(62, 77%, 48%)
CMYKcmyk(2.4%, 0%, 77.2%, 51.8%)
CIE-LABlab(49.79, -13.14, 47.91)
CIE-LCHlch(49.79, 49.68, 105.34°)
OKLaboklab(56.27% -0.0412 0.1053)
OKLCHoklch(56.27% 0.113 111.4)
XYZxyz(15.0388, 18.2432, 3.8275)
Luminance0.1824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B1C #1F1C7B
analogous
#7B4F1C #787B1C #487B1C
triadic
#787B1C #1C787B #7B1C78
tetradic
#787B1C #1C7B4F #1F1C7B #7B1C48
square
#787B1C #1C7B4F #1F1C7B #7B1C48
split-complementary
#787B1C #1C487B #4F1C7B
monochromatic
#181906 #474911 #787B1C #A9AD27 #CED33E

Accessibility & contrast

On white

4.52
#787B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#787B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B1C
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B1C#FFFFFF#000000##000000
##787B1C1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857506
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b1c;
/* rgb */ color: rgb(120, 123, 28);
/* oklch */ color: oklch(56.3% 0.113 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a160',
    500: '#787b1c',
    950: '#000000',
  },
}
SCSS
$custom: #787b1c;
$custom-light: #a2a160;
$custom-dark: #000000;
JSON
{
  "hex": "#787b1c",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 61.895,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56265,
    "c": 0.11307,
    "h": 111.4
  },
  "luminance": 0.18243
}

Semantic roles & 50–950 ramp

primary
#787B1C
secondary
#4744AF
accent
#42E647
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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