#787F2F#787F2F

#787F2F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.104 H 113.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#787F2F
RGBrgb(120, 127, 47)
HSLhsl(65, 46%, 34%)
HSVhsv(65, 63%, 50%)
CMYKcmyk(5.5%, 0%, 63%, 50.2%)
CIE-LABlab(51.13, -14.13, 41.38)
CIE-LCHlch(51.13, 43.73, 108.85°)
OKLaboklab(57.38% -0.042 0.0948)
OKLCHoklch(57.38% 0.104 113.9)
XYZxyz(15.8486, 19.3773, 5.5941)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F2F #362F7F
analogous
#7F5E2F #787F2F #507F2F
triadic
#787F2F #2F787F #7F2F78
tetradic
#787F2F #2F7F5E #362F7F #7F2F50
square
#787F2F #2F7F5E #362F7F #7F2F50
split-complementary
#787F2F #2F507F #5E2F7F
monochromatic
#24260E #4E521E #787F2F #A2AC40 #BDC563

Accessibility & contrast

On white

4.31
#787F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#787F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F2F
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F2F#FFFFFF#000000##000000
##787F2F1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f2f;
/* rgb */ color: rgb(120, 127, 47);
/* oklch */ color: oklch(57.4% 0.104 113.9);
Tailwind
colors: {
  custom: {
    50: '#a1a46b',
    500: '#787f2f',
    950: '#000000',
  },
}
SCSS
$custom: #787f2f;
$custom-light: #a1a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#787f2f",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 65.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57379,
    "c": 0.10366,
    "h": 113.9
  },
  "luminance": 0.19377
}

Semantic roles & 50–950 ramp

primary
#787F2F
secondary
#645EAC
accent
#52D65E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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