#787D31#787D31

#787D31 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.099 H 112.6°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#787D31
RGBrgb(120, 125, 49)
HSLhsl(64, 44%, 34%)
HSVhsv(64, 61%, 49%)
CMYKcmyk(4%, 0%, 60.8%, 51%)
CIE-LABlab(50.55, -12.89, 39.81)
CIE-LCHlch(50.55, 41.84, 107.95°)
OKLaboklab(56.92% -0.0383 0.0917)
OKLCHoklch(56.92% 0.099 112.6)
XYZxyz(15.6341, 18.8824, 5.7262)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D31 #36317D
analogous
#7D5C31 #787D31 #527D31
triadic
#787D31 #31787D #7D3178
tetradic
#787D31 #317D5C #36317D #7D3152
square
#787D31 #317D5C #36317D #7D3152
split-complementary
#787D31 #31527D #5C317D
monochromatic
#24250F #4E5120 #787D31 #A2A942 #BDC366

Accessibility & contrast

On white

4.40
#787D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#787D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D31
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D31#FFFFFF#000000##000000
##787D311.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#867729
Deuteranopia (green-blind)
#867936
Tritanopia (blue-blind)
#80766D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d31;
/* rgb */ color: rgb(120, 125, 49);
/* oklch */ color: oklch(56.9% 0.099 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a26c',
    500: '#787d31',
    950: '#000000',
  },
}
SCSS
$custom: #787d31;
$custom-light: #a1a26c;
$custom-dark: #000000;
JSON
{
  "hex": "#787d31",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 63.947,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56924,
    "c": 0.09938,
    "h": 112.6
  },
  "luminance": 0.18882
}

Semantic roles & 50–950 ramp

primary
#787D31
secondary
#6460AA
accent
#54D35D
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787D31

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

Preview Lab → · Contrast checker → · Palette generator →

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