#787331#787331

#787331 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.6% C 0.088 H 104.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#787331
RGBrgb(120, 115, 49)
HSLhsl(56, 42%, 33%)
HSVhsv(56, 59%, 47%)
CMYKcmyk(0%, 4.2%, 59.2%, 52.9%)
CIE-LABlab(47.59, -7.37, 36.50)
CIE-LCHlch(47.59, 37.24, 101.41°)
OKLaboklab(54.57% -0.0226 0.0847)
OKLCHoklch(54.57% 0.088 104.9)
XYZxyz(14.4313, 16.4768, 5.3253)
Luminance0.1648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787331 #313678
analogous
#784F31 #787331 #597831
triadic
#787331 #317873 #733178
tetradic
#787331 #31784F #313678 #783159
square
#787331 #31784F #313678 #783159
split-complementary
#787331 #315978 #4F3178
monochromatic
#21200E #4D491F #787331 #A39D43 #C0B964

Accessibility & contrast

On white

4.89
#787331 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#787331 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787331
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787331#FFFFFF#000000##FFFFFF
##7873311.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2A
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#806C64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #787331;
/* rgb */ color: rgb(120, 115, 49);
/* oklch */ color: oklch(54.6% 0.088 104.9);
Tailwind
colors: {
  custom: {
    50: '#a19b6c',
    500: '#787331',
    950: '#000000',
  },
}
SCSS
$custom: #787331;
$custom-light: #a19b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#787331",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 49
  },
  "hsl": {
    "h": 55.775,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54568,
    "c": 0.08763,
    "h": 104.9
  },
  "luminance": 0.16476
}

Semantic roles & 50–950 ramp

primary
#787331
secondary
#5E63A7
accent
#5FD256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #787331

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

Preview Lab → · Contrast checker → · Palette generator →

#787331 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva