#787B1E#787B1E

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

Color values

HEX#787B1E
RGBrgb(120, 123, 30)
HSLhsl(62, 61%, 30%)
HSVhsv(62, 76%, 48%)
CMYKcmyk(2.4%, 0%, 75.6%, 51.8%)
CIE-LABlab(49.80, -13.05, 47.20)
CIE-LCHlch(49.80, 48.97, 105.45°)
OKLaboklab(56.28% -0.0407 0.1042)
OKLCHoklch(56.28% 0.112 111.4)
XYZxyz(15.0635, 18.2531, 3.9577)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B1E #211E7B
analogous
#7B4F1E #787B1E #4A7B1E
triadic
#787B1E #1E787B #7B1E78
tetradic
#787B1E #1E7B4F #211E7B #7B1E4A
square
#787B1E #1E7B4F #211E7B #7B1E4A
split-complementary
#787B1E #1E4A7B #4F1E7B
monochromatic
#181906 #484A12 #787B1E #A8AC2A #CCD142

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B1E#FFFFFF#000000##000000
##787B1E1.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)
#85750B
Deuteranopia (green-blind)
#867825
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b1e;
/* rgb */ color: rgb(120, 123, 30);
/* oklch */ color: oklch(56.3% 0.112 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a161',
    500: '#787b1e',
    950: '#000000',
  },
}
SCSS
$custom: #787b1e;
$custom-light: #a2a161;
$custom-dark: #000000;
JSON
{
  "hex": "#787b1e",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 61.935,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.56278,
    "c": 0.11186,
    "h": 111.4
  },
  "luminance": 0.18253
}

Semantic roles & 50–950 ramp

primary
#787B1E
secondary
#4A46AE
accent
#44E449
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #787B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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