#787F2B#787F2B

#787F2B is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.107 H 113.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787F2B
RGBrgb(120, 127, 43)
HSLhsl(65, 49%, 33%)
HSVhsv(65, 66%, 50%)
CMYKcmyk(5.5%, 0%, 66.1%, 50.2%)
CIE-LABlab(51.09, -14.43, 43.16)
CIE-LCHlch(51.09, 45.51, 108.48°)
OKLaboklab(57.34% -0.0432 0.0979)
OKLCHoklch(57.34% 0.107 113.8)
XYZxyz(15.7715, 19.3465, 5.1885)
Luminance0.1935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F2B #322B7F
analogous
#7F5C2B #787F2B #4E7F2B
triadic
#787F2B #2B787F #7F2B78
tetradic
#787F2B #2B7F5C #322B7F #7F2B4E
square
#787F2B #2B7F5C #322B7F #7F2B4E
split-complementary
#787F2B #2B4E7F #5C2B7F
monochromatic
#22240C #4D511C #787F2B #A3AD3A #BFC85C

Accessibility & contrast

On white

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

On black

4.87
#787F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F2B
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F2B#FFFFFF#000000##000000
##787F2B1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787f2b;
/* rgb */ color: rgb(120, 127, 43);
/* oklch */ color: oklch(57.3% 0.107 113.8);
Tailwind
colors: {
  custom: {
    50: '#a1a469',
    500: '#787f2b',
    950: '#000000',
  },
}
SCSS
$custom: #787f2b;
$custom-light: #a1a469;
$custom-dark: #000000;
JSON
{
  "hex": "#787f2b",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 65,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57339,
    "c": 0.10706,
    "h": 113.8
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#787F2B
secondary
#5F58AE
accent
#4FD95A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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