#787B24#787B24

#787B24 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.108 H 111.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#787B24
RGBrgb(120, 123, 36)
HSLhsl(62, 55%, 31%)
HSVhsv(62, 71%, 48%)
CMYKcmyk(2.4%, 0%, 70.7%, 51.8%)
CIE-LABlab(49.84, -12.72, 44.89)
CIE-LCHlch(49.84, 46.65, 105.82°)
OKLaboklab(56.32% -0.0392 0.1004)
OKLCHoklch(56.32% 0.108 111.3)
XYZxyz(15.1476, 18.2867, 4.4005)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B24 #27247B
analogous
#7B5224 #787B24 #4C7B24
triadic
#787B24 #24787B #7B2478
tetradic
#787B24 #247B52 #27247B #7B244C
square
#787B24 #247B52 #27247B #7B244C
split-complementary
#787B24 #244C7B #52247B
monochromatic
#1C1C08 #4A4C16 #787B24 #A6AA32 #C7CB4E

Accessibility & contrast

On white

4.51
#787B24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#787B24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B24
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B24#FFFFFF#000000##000000
##787B241.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857517
Deuteranopia (green-blind)
#85782A
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787b24;
/* rgb */ color: rgb(120, 123, 36);
/* oklch */ color: oklch(56.3% 0.108 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#787b24',
    950: '#000000',
  },
}
SCSS
$custom: #787b24;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#787b24",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 36
  },
  "hsl": {
    "h": 62.069,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56323,
    "c": 0.10779,
    "h": 111.3
  },
  "luminance": 0.18286
}

Semantic roles & 50–950 ramp

primary
#787B24
secondary
#514DAD
accent
#4ADE4F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B24

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

Preview Lab → · Contrast checker → · Palette generator →

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