#787C31#787C31

#787C31 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.098 H 112.0°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#787C31
RGBrgb(120, 124, 49)
HSLhsl(63, 43%, 34%)
HSVhsv(63, 60%, 49%)
CMYKcmyk(3.2%, 0%, 60.5%, 51.4%)
CIE-LABlab(50.25, -12.35, 39.48)
CIE-LCHlch(50.25, 41.37, 107.37°)
OKLaboklab(56.69% -0.0367 0.091)
OKLCHoklch(56.69% 0.098 112)
XYZxyz(15.5081, 18.6305, 5.6842)
Luminance0.1863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C31 #35317C
analogous
#7C5B31 #787C31 #537C31
triadic
#787C31 #31787C #7C3178
tetradic
#787C31 #317C5B #35317C #7C3153
square
#787C31 #317C5B #35317C #7C3153
split-complementary
#787C31 #31537C #5B317C
monochromatic
#23240E #4E5020 #787C31 #A2A842 #BDC265

Accessibility & contrast

On white

4.44
#787C31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#787C31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C31
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C31#FFFFFF#000000##000000
##787C311.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#857729
Deuteranopia (green-blind)
#857935
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787c31;
/* rgb */ color: rgb(120, 124, 49);
/* oklch */ color: oklch(56.7% 0.098 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a16c',
    500: '#787c31',
    950: '#000000',
  },
}
SCSS
$custom: #787c31;
$custom-light: #a1a16c;
$custom-dark: #000000;
JSON
{
  "hex": "#787c31",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 49
  },
  "hsl": {
    "h": 63.2,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56687,
    "c": 0.09815,
    "h": 112
  },
  "luminance": 0.1863
}

Semantic roles & 50–950 ramp

primary
#787C31
secondary
#635FAA
accent
#55D35B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #787C31

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

Preview Lab → · Contrast checker → · Palette generator →

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