#787D28#787D28

#787D28 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.107 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787D28
RGBrgb(120, 125, 40)
HSLhsl(64, 52%, 32%)
HSVhsv(64, 68%, 49%)
CMYKcmyk(4%, 0%, 68%, 51%)
CIE-LABlab(50.47, -13.55, 43.83)
CIE-LCHlch(50.47, 45.88, 107.18°)
OKLaboklab(56.83% -0.0411 0.0989)
OKLCHoklch(56.83% 0.107 112.6)
XYZxyz(15.4628, 18.8138, 4.8240)
Luminance0.1881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D28 #2D287D
analogous
#7D5728 #787D28 #4E7D28
triadic
#787D28 #28787D #7D2878
tetradic
#787D28 #287D57 #2D287D #7D284E
square
#787D28 #287D57 #2D287D #7D284E
split-complementary
#787D28 #284E7D #57287D
monochromatic
#1F200A #4B4F19 #787D28 #A5AB37 #C2C956

Accessibility & contrast

On white

4.41
#787D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D28
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D28#FFFFFF#000000##000000
##787D281.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771C
Deuteranopia (green-blind)
#87792E
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d28;
/* rgb */ color: rgb(120, 125, 40);
/* oklch */ color: oklch(56.8% 0.107 112.6);
Tailwind
colors: {
  custom: {
    50: '#a1a267',
    500: '#787d28',
    950: '#000000',
  },
}
SCSS
$custom: #787d28;
$custom-light: #a1a267;
$custom-dark: #000000;
JSON
{
  "hex": "#787d28",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 63.529,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56834,
    "c": 0.10708,
    "h": 112.6
  },
  "luminance": 0.18814
}

Semantic roles & 50–950 ramp

primary
#787D28
secondary
#5853AE
accent
#4DDB55
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D28

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

Preview Lab → · Contrast checker → · Palette generator →

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