#787B1F#787B1F

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

Color values

HEX#787B1F
RGBrgb(120, 123, 31)
HSLhsl(62, 60%, 30%)
HSVhsv(62, 75%, 48%)
CMYKcmyk(2.4%, 0%, 74.8%, 51.8%)
CIE-LABlab(49.81, -12.99, 46.83)
CIE-LCHlch(49.81, 48.60, 105.51°)
OKLaboklab(56.29% -0.0405 0.1036)
OKLCHoklch(56.29% 0.111 111.4)
XYZxyz(15.0765, 18.2583, 4.0261)
Luminance0.1826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B1F #221F7B
analogous
#7B501F #787B1F #4A7B1F
triadic
#787B1F #1F787B #7B1F78
tetradic
#787B1F #1F7B50 #221F7B #7B1F4A
square
#787B1F #1F7B50 #221F7B #7B1F4A
split-complementary
#787B1F #1F4A7B #501F7B
monochromatic
#191906 #484A13 #787B1F #A8AC2B #CBD044

Accessibility & contrast

On white

4.51
#787B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B1F#FFFFFF#000000##000000
##787B1F1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#857826
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b1f;
/* rgb */ color: rgb(120, 123, 31);
/* oklch */ color: oklch(56.3% 0.111 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a162',
    500: '#787b1f',
    950: '#000000',
  },
}
SCSS
$custom: #787b1f;
$custom-light: #a2a162;
$custom-dark: #000000;
JSON
{
  "hex": "#787b1f",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 61.957,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56285,
    "c": 0.11122,
    "h": 111.4
  },
  "luminance": 0.18258
}

Semantic roles & 50–950 ramp

primary
#787B1F
secondary
#4B48AE
accent
#45E34A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #787B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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