#787B2F#787B2F

#787B2F is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.4% C 0.099 H 111.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#787B2F
RGBrgb(120, 123, 47)
HSLhsl(62, 45%, 33%)
HSVhsv(62, 62%, 48%)
CMYKcmyk(2.4%, 0%, 61.8%, 51.8%)
CIE-LABlab(49.94, -11.96, 40.09)
CIE-LCHlch(49.94, 41.83, 106.62°)
OKLaboklab(56.43% -0.0359 0.092)
OKLCHoklch(56.43% 0.099 111.3)
XYZxyz(15.3422, 18.3646, 5.4253)
Luminance0.1836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B2F #322F7B
analogous
#7B582F #787B2F #527B2F
triadic
#787B2F #2F787B #7B2F78
tetradic
#787B2F #2F7B58 #322F7B #7B2F52
square
#787B2F #2F7B58 #322F7B #7B2F52
split-complementary
#787B2F #2F527B #582F7B
monochromatic
#22220D #4D4F1E #787B2F #A3A740 #BFC362

Accessibility & contrast

On white

4.49
#787B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#787B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B2F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B2F#FFFFFF#000000##000000
##787B2F1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#847626
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b2f;
/* rgb */ color: rgb(120, 123, 47);
/* oklch */ color: oklch(56.4% 0.099 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a16b',
    500: '#787b2f',
    950: '#000000',
  },
}
SCSS
$custom: #787b2f;
$custom-light: #a1a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#787b2f",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 62.368,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56427,
    "c": 0.09877,
    "h": 111.3
  },
  "luminance": 0.18364
}

Semantic roles & 50–950 ramp

primary
#787B2F
secondary
#5F5CAA
accent
#53D458
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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