#787A2F#787A2F

#787A2F is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.098 H 110.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#787A2F
RGBrgb(120, 122, 47)
HSLhsl(62, 44%, 33%)
HSVhsv(62, 61%, 48%)
CMYKcmyk(1.6%, 0%, 61.5%, 52.2%)
CIE-LABlab(49.64, -11.42, 39.76)
CIE-LCHlch(49.64, 41.37, 106.02°)
OKLaboklab(56.19% -0.0343 0.0913)
OKLCHoklch(56.19% 0.098 110.6)
XYZxyz(15.2188, 18.1177, 5.3842)
Luminance0.1812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A2F #312F7A
analogous
#7A562F #787A2F #527A2F
triadic
#787A2F #2F787A #7A2F78
tetradic
#787A2F #2F7A56 #312F7A #7A2F52
square
#787A2F #2F7A56 #312F7A #7A2F52
split-complementary
#787A2F #2F527A #562F7A
monochromatic
#21220D #4D4E1E #787A2F #A3A640 #C0C261

Accessibility & contrast

On white

4.54
#787A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#787A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A2F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A2F#FFFFFF#000000##000000
##787A2F1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#837526
Deuteranopia (green-blind)
#847733
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a2f;
/* rgb */ color: rgb(120, 122, 47);
/* oklch */ color: oklch(56.2% 0.098 110.6);
Tailwind
colors: {
  custom: {
    50: '#a1a06b',
    500: '#787a2f',
    950: '#000000',
  },
}
SCSS
$custom: #787a2f;
$custom-light: #a1a06b;
$custom-dark: #000000;
JSON
{
  "hex": "#787a2f",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 61.6,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5619,
    "c": 0.09757,
    "h": 110.6
  },
  "luminance": 0.18117
}

Semantic roles & 50–950 ramp

primary
#787A2F
secondary
#5E5CA9
accent
#54D457
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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