#788428#788428

#788428 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.116 H 116.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#788428
RGBrgb(120, 132, 40)
HSLhsl(68, 53%, 34%)
HSVhsv(68, 70%, 52%)
CMYKcmyk(9.1%, 0%, 69.7%, 48.2%)
CIE-LABlab(52.56, -17.28, 45.98)
CIE-LCHlch(52.56, 49.12, 110.60°)
OKLaboklab(58.51% -0.0515 0.1034)
OKLCHoklch(58.51% 0.116 116.5)
XYZxyz(16.3804, 20.6490, 5.1298)
Luminance0.2065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#788428 #342884
analogous
#846228 #788428 #4A8428
triadic
#788428 #287884 #842878
tetradic
#788428 #288462 #342884 #84284A
square
#788428 #288462 #342884 #84284A
split-complementary
#788428 #284A84 #622884
monochromatic
#23260C #4D551A #788428 #A3B336 #BECD5A

Accessibility & contrast

On white

4.09
#788428 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#788428 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #788428
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##788428#FFFFFF#000000##000000
##7884281.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1A
Deuteranopia (green-blind)
#8C7E2F
Tritanopia (blue-blind)
#807C72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #788428;
/* rgb */ color: rgb(120, 132, 40);
/* oklch */ color: oklch(58.5% 0.116 116.5);
Tailwind
colors: {
  custom: {
    50: '#a2a768',
    500: '#788428',
    950: '#000000',
  },
}
SCSS
$custom: #788428;
$custom-light: #a2a768;
$custom-dark: #000000;
JSON
{
  "hex": "#788428",
  "rgb": {
    "r": 120,
    "g": 132,
    "b": 40
  },
  "hsl": {
    "h": 67.826,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58513,
    "c": 0.11552,
    "h": 116.5
  },
  "luminance": 0.20649
}

Semantic roles & 50–950 ramp

primary
#788428
secondary
#6256B2
accent
#4BDD5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #788428

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

Preview Lab → · Contrast checker → · Palette generator →

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