#787F2A#787F2A

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

Color values

HEX#787F2A
RGBrgb(120, 127, 42)
HSLhsl(65, 50%, 33%)
HSVhsv(65, 67%, 50%)
CMYKcmyk(5.5%, 0%, 66.9%, 50.2%)
CIE-LABlab(51.08, -14.49, 43.60)
CIE-LCHlch(51.08, 45.94, 108.39°)
OKLaboklab(57.33% -0.0435 0.0987)
OKLCHoklch(57.33% 0.108 113.8)
XYZxyz(15.7534, 19.3393, 5.0930)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F2A #312A7F
analogous
#7F5B2A #787F2A #4D7F2A
triadic
#787F2A #2A787F #7F2A78
tetradic
#787F2A #2A7F5B #312A7F #7F2A4D
square
#787F2A #2A7F5B #312A7F #7F2A4D
split-complementary
#787F2A #2A4D7F #5B2A7F
monochromatic
#21230C #4D511B #787F2A #A3AD39 #C0C95B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F2A#FFFFFF#000000##000000
##787F2A1.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)
#88791F
Deuteranopia (green-blind)
#887B30
Tritanopia (blue-blind)
#80786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f2a;
/* rgb */ color: rgb(120, 127, 42);
/* oklch */ color: oklch(57.3% 0.108 113.8);
Tailwind
colors: {
  custom: {
    50: '#a1a468',
    500: '#787f2a',
    950: '#000000',
  },
}
SCSS
$custom: #787f2a;
$custom-light: #a1a468;
$custom-dark: #000000;
JSON
{
  "hex": "#787f2a",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 64.941,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5733,
    "c": 0.10788,
    "h": 113.8
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#787F2A
secondary
#5E57AE
accent
#4EDA5A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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