#787B2D#787B2D

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

Color values

HEX#787B2D
RGBrgb(120, 123, 45)
HSLhsl(62, 46%, 33%)
HSVhsv(62, 63%, 48%)
CMYKcmyk(2.4%, 0%, 63.4%, 51.8%)
CIE-LABlab(49.92, -12.12, 41.00)
CIE-LCHlch(49.92, 42.76, 106.46°)
OKLaboklab(56.41% -0.0365 0.0937)
OKLCHoklch(56.41% 0.101 111.3)
XYZxyz(15.3028, 18.3488, 5.2177)
Luminance0.1835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B2D #302D7B
analogous
#7B572D #787B2D #517B2D
triadic
#787B2D #2D787B #7B2D78
tetradic
#787B2D #2D7B57 #302D7B #7B2D51
square
#787B2D #2D7B57 #302D7B #7B2D51
split-complementary
#787B2D #2D517B #572D7B
monochromatic
#21210C #4C4E1D #787B2D #A4A83D #C0C45E

Accessibility & contrast

On white

4.50
#787B2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787B2D#FFFFFF#000000##000000
##787B2D1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787b2d;
/* rgb */ color: rgb(120, 123, 45);
/* oklch */ color: oklch(56.4% 0.101 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a16a',
    500: '#787b2d',
    950: '#000000',
  },
}
SCSS
$custom: #787b2d;
$custom-light: #a1a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#787b2d",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 45
  },
  "hsl": {
    "h": 62.308,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56406,
    "c": 0.10056,
    "h": 111.3
  },
  "luminance": 0.18348
}

Semantic roles & 50–950 ramp

primary
#787B2D
secondary
#5C59AB
accent
#52D657
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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