#788331#788331

#788331 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.107 H 116.3°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#788331
RGBrgb(120, 131, 49)
HSLhsl(68, 46%, 35%)
HSVhsv(68, 63%, 51%)
CMYKcmyk(8.4%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.34, -16.11, 41.77)
CIE-LCHlch(52.34, 44.77, 111.09°)
OKLaboklab(58.36% -0.0473 0.0959)
OKLCHoklch(58.36% 0.107 116.3)
XYZxyz(16.4167, 20.4476, 5.9871)
Luminance0.2045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788331 #3C3183
analogous
#836531 #788331 #4F8331
triadic
#788331 #317883 #833178
tetradic
#788331 #318365 #3C3183 #83314F
square
#788331 #318365 #3C3183 #83314F
split-complementary
#788331 #314F83 #653183
monochromatic
#262A10 #4F5620 #788331 #A1B042 #BAC668

Accessibility & contrast

On white

4.13
#788331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#788331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788331
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788331#FFFFFF#000000##000000
##7883311.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C27
Deuteranopia (green-blind)
#8B7D36
Tritanopia (blue-blind)
#7F7C72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #788331;
/* rgb */ color: rgb(120, 131, 49);
/* oklch */ color: oklch(58.4% 0.107 116.3);
Tailwind
colors: {
  custom: {
    50: '#a1a76d',
    500: '#788331',
    950: '#000000',
  },
}
SCSS
$custom: #788331;
$custom-light: #a1a76d;
$custom-dark: #000000;
JSON
{
  "hex": "#788331",
  "rgb": {
    "r": 120,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 68.049,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58358,
    "c": 0.10694,
    "h": 116.3
  },
  "luminance": 0.20447
}

Semantic roles & 50–950 ramp

primary
#788331
secondary
#6C62AE
accent
#53D564
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #788331

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

Preview Lab → · Contrast checker → · Palette generator →

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