#787A2D#787A2D

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

Color values

HEX#787A2D
RGBrgb(120, 122, 45)
HSLhsl(62, 46%, 33%)
HSVhsv(62, 63%, 48%)
CMYKcmyk(1.6%, 0%, 63.1%, 52.2%)
CIE-LABlab(49.62, -11.57, 40.68)
CIE-LCHlch(49.62, 42.30, 105.87°)
OKLaboklab(56.17% -0.035 0.093)
OKLCHoklch(56.17% 0.099 110.6)
XYZxyz(15.1793, 18.1020, 5.1765)
Luminance0.1810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A2D #2F2D7A
analogous
#7A552D #787A2D #527A2D
triadic
#787A2D #2D787A #7A2D78
tetradic
#787A2D #2D7A55 #2F2D7A #7A2D52
square
#787A2D #2D7A55 #2F2D7A #7A2D52
split-complementary
#787A2D #2D527A #552D7A
monochromatic
#20210C #4C4D1D #787A2D #A4A73D #C1C45E

Accessibility & contrast

On white

4.55
#787A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A2D#FFFFFF#000000##000000
##787A2D1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787a2d;
/* rgb */ color: rgb(120, 122, 45);
/* oklch */ color: oklch(56.2% 0.099 110.6);
Tailwind
colors: {
  custom: {
    50: '#a1a06a',
    500: '#787a2d',
    950: '#000000',
  },
}
SCSS
$custom: #787a2d;
$custom-light: #a1a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#787a2d",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 61.558,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56169,
    "c": 0.09937,
    "h": 110.6
  },
  "luminance": 0.18102
}

Semantic roles & 50–950 ramp

primary
#787A2D
secondary
#5B59AA
accent
#52D655
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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