#787F31#787F31

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

Color values

HEX#787F31
RGBrgb(120, 127, 49)
HSLhsl(65, 44%, 35%)
HSVhsv(65, 61%, 50%)
CMYKcmyk(5.5%, 0%, 61.4%, 50.2%)
CIE-LABlab(51.14, -13.98, 40.47)
CIE-LCHlch(51.14, 42.81, 109.05°)
OKLaboklab(57.4% -0.0413 0.0931)
OKLCHoklch(57.4% 0.102 113.9)
XYZxyz(15.8898, 19.3938, 5.8115)
Luminance0.1939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F31 #38317F
analogous
#7F5F31 #787F31 #517F31
triadic
#787F31 #31787F #7F3178
tetradic
#787F31 #317F5F #38317F #7F3151
square
#787F31 #317F5F #38317F #7F3151
split-complementary
#787F31 #31517F #5F317F
monochromatic
#25270F #4E5320 #787F31 #A2AB42 #BCC466

Accessibility & contrast

On white

4.30
#787F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F31#FFFFFF#000000##000000
##787F311.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887928
Deuteranopia (green-blind)
#887B36
Tritanopia (blue-blind)
#7F786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f31;
/* rgb */ color: rgb(120, 127, 49);
/* oklch */ color: oklch(57.4% 0.102 113.9);
Tailwind
colors: {
  custom: {
    50: '#a1a46d',
    500: '#787f31',
    950: '#000000',
  },
}
SCSS
$custom: #787f31;
$custom-light: #a1a46d;
$custom-dark: #000000;
JSON
{
  "hex": "#787f31",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 65.385,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57401,
    "c": 0.10187,
    "h": 113.9
  },
  "luminance": 0.19394
}

Semantic roles & 50–950 ramp

primary
#787F31
secondary
#6760AB
accent
#54D45F
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787F31

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

Preview Lab → · Contrast checker → · Palette generator →

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