#787A28#787A28

#787A28 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.1% C 0.104 H 110.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#787A28
RGBrgb(120, 122, 40)
HSLhsl(61, 51%, 32%)
HSVhsv(61, 67%, 48%)
CMYKcmyk(1.6%, 0%, 67.2%, 52.2%)
CIE-LABlab(49.58, -11.92, 42.91)
CIE-LCHlch(49.58, 44.53, 105.53°)
OKLaboklab(56.12% -0.0365 0.0969)
OKLCHoklch(56.12% 0.104 110.7)
XYZxyz(15.0887, 18.0657, 4.6993)
Luminance0.1807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A28 #2A287A
analogous
#7A5328 #787A28 #4F7A28
triadic
#787A28 #28787A #7A2878
tetradic
#787A28 #287A53 #2A287A #7A284F
square
#787A28 #287A53 #2A287A #7A284F
split-complementary
#787A28 #284F7A #53287A
monochromatic
#1D1E0A #4B4C19 #787A28 #A5A837 #C5C755

Accessibility & contrast

On white

4.55
#787A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#787A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A28
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A28#FFFFFF#000000##000000
##787A281.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751D
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#807269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a28;
/* rgb */ color: rgb(120, 122, 40);
/* oklch */ color: oklch(56.1% 0.104 110.7);
Tailwind
colors: {
  custom: {
    50: '#a1a067',
    500: '#787a28',
    950: '#000000',
  },
}
SCSS
$custom: #787a28;
$custom-light: #a1a067;
$custom-dark: #000000;
JSON
{
  "hex": "#787a28",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 61.463,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5612,
    "c": 0.10358,
    "h": 110.7
  },
  "luminance": 0.18065
}

Semantic roles & 50–950 ramp

primary
#787A28
secondary
#5452AC
accent
#4EDA51
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A28

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

Preview Lab → · Contrast checker → · Palette generator →

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