#788321#788321

#788321 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.2% C 0.119 H 115.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#788321
RGBrgb(120, 131, 33)
HSLhsl(67, 60%, 32%)
HSVhsv(67, 75%, 51%)
CMYKcmyk(8.4%, 0%, 74.8%, 48.6%)
CIE-LABlab(52.21, -17.17, 48.39)
CIE-LCHlch(52.21, 51.35, 109.53°)
OKLaboklab(58.22% -0.0519 0.1072)
OKLCHoklch(58.22% 0.119 115.8)
XYZxyz(16.1370, 20.3357, 4.5137)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788321 #2C2183
analogous
#835D21 #788321 #478321
triadic
#788321 #217883 #832178
tetradic
#788321 #21835D #2C2183 #832147
square
#788321 #21835D #2C2183 #832147
split-complementary
#788321 #214783 #5D2183
monochromatic
#1E2108 #4B5215 #788321 #A5B42D #C3D24C

Accessibility & contrast

On white

4.14
#788321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#788321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788321
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788321#FFFFFF#000000##000000
##7883211.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0E
Deuteranopia (green-blind)
#8C7D29
Tritanopia (blue-blind)
#807B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #788321;
/* rgb */ color: rgb(120, 131, 33);
/* oklch */ color: oklch(58.2% 0.119 115.8);
Tailwind
colors: {
  custom: {
    50: '#a2a664',
    500: '#788321',
    950: '#000000',
  },
}
SCSS
$custom: #788321;
$custom-light: #a2a664;
$custom-dark: #000000;
JSON
{
  "hex": "#788321",
  "rgb": {
    "r": 120,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 66.735,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58218,
    "c": 0.11915,
    "h": 115.8
  },
  "luminance": 0.20335
}

Semantic roles & 50–950 ramp

primary
#788321
secondary
#574BB5
accent
#45E357
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #788321

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

Preview Lab → · Contrast checker → · Palette generator →

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