#787A22#787A22

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

Color values

HEX#787A22
RGBrgb(120, 122, 34)
HSLhsl(61, 56%, 31%)
HSVhsv(61, 72%, 48%)
CMYKcmyk(1.6%, 0%, 72.1%, 52.2%)
CIE-LABlab(49.53, -12.29, 45.39)
CIE-LCHlch(49.53, 47.02, 105.15°)
OKLaboklab(56.07% -0.0382 0.1011)
OKLCHoklch(56.07% 0.108 110.7)
XYZxyz(14.9945, 18.0280, 4.2030)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A22 #24227A
analogous
#7A5022 #787A22 #4C7A22
triadic
#787A22 #22787A #7A2278
tetradic
#787A22 #227A50 #24227A #7A224C
square
#787A22 #227A50 #24227A #7A224C
split-complementary
#787A22 #224C7A #50227A
monochromatic
#1A1A07 #494A15 #787A22 #A7AA2F #CACD4A

Accessibility & contrast

On white

4.56
#787A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A22#FFFFFF#000000##000000
##787A221.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847413
Deuteranopia (green-blind)
#857728
Tritanopia (blue-blind)
#817269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a22;
/* rgb */ color: rgb(120, 122, 34);
/* oklch */ color: oklch(56.1% 0.108 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a063',
    500: '#787a22',
    950: '#000000',
  },
}
SCSS
$custom: #787a22;
$custom-light: #a2a063;
$custom-dark: #000000;
JSON
{
  "hex": "#787a22",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 61.364,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56069,
    "c": 0.10809,
    "h": 110.7
  },
  "luminance": 0.18028
}

Semantic roles & 50–950 ramp

primary
#787A22
secondary
#4D4BAD
accent
#48E04C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A22

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

Preview Lab → · Contrast checker → · Palette generator →

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