#787E31#787E31

#787E31 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.101 H 113.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#787E31
RGBrgb(120, 126, 49)
HSLhsl(65, 44%, 34%)
HSVhsv(65, 61%, 49%)
CMYKcmyk(4.8%, 0%, 61.1%, 50.6%)
CIE-LABlab(50.85, -13.44, 40.14)
CIE-LCHlch(50.85, 42.33, 108.51°)
OKLaboklab(57.16% -0.0398 0.0924)
OKLCHoklch(57.16% 0.101 113.3)
XYZxyz(15.7613, 19.1368, 5.7686)
Luminance0.1914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E31 #37317E
analogous
#7E5E31 #787E31 #527E31
triadic
#787E31 #31787E #7E3178
tetradic
#787E31 #317E5E #37317E #7E3152
square
#787E31 #317E5E #37317E #7E3152
split-complementary
#787E31 #31527E #5E317E
monochromatic
#24260F #4E5220 #787E31 #A2AA42 #BCC366

Accessibility & contrast

On white

4.35
#787E31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#787E31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E31
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E31#FFFFFF#000000##000000
##787E311.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877828
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#80776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e31;
/* rgb */ color: rgb(120, 126, 49);
/* oklch */ color: oklch(57.2% 0.101 113.3);
Tailwind
colors: {
  custom: {
    50: '#a1a36c',
    500: '#787e31',
    950: '#000000',
  },
}
SCSS
$custom: #787e31;
$custom-light: #a1a36c;
$custom-dark: #000000;
JSON
{
  "hex": "#787e31",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 64.675,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57162,
    "c": 0.10062,
    "h": 113.3
  },
  "luminance": 0.19137
}

Semantic roles & 50–950 ramp

primary
#787E31
secondary
#6660AB
accent
#54D45E
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E31

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

Preview Lab → · Contrast checker → · Palette generator →

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