#787A24#787A24

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

Color values

HEX#787A24
RGBrgb(120, 122, 36)
HSLhsl(61, 54%, 31%)
HSVhsv(61, 70%, 48%)
CMYKcmyk(1.6%, 0%, 70.5%, 52.2%)
CIE-LABlab(49.54, -12.17, 44.59)
CIE-LCHlch(49.54, 46.22, 105.27°)
OKLaboklab(56.08% -0.0377 0.0998)
OKLCHoklch(56.08% 0.107 110.7)
XYZxyz(15.0242, 18.0399, 4.3593)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A24 #26247A
analogous
#7A5124 #787A24 #4D7A24
triadic
#787A24 #24787A #7A2478
tetradic
#787A24 #247A51 #26247A #7A244D
square
#787A24 #247A51 #26247A #7A244D
split-complementary
#787A24 #244D7A #51247A
monochromatic
#1B1B08 #4A4B16 #787A24 #A6A932 #C8CB4E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787A24#FFFFFF#000000##000000
##787A241.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)
#847517
Deuteranopia (green-blind)
#84772A
Tritanopia (blue-blind)
#817269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a24;
/* rgb */ color: rgb(120, 122, 36);
/* oklch */ color: oklch(56.1% 0.107 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a064',
    500: '#787a24',
    950: '#000000',
  },
}
SCSS
$custom: #787a24;
$custom-light: #a2a064;
$custom-dark: #000000;
JSON
{
  "hex": "#787a24",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 36
  },
  "hsl": {
    "h": 61.395,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.10665,
    "h": 110.7
  },
  "luminance": 0.1804
}

Semantic roles & 50–950 ramp

primary
#787A24
secondary
#504DAC
accent
#4ADE4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A24

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

Preview Lab → · Contrast checker → · Palette generator →

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