#787C24#787C24

#787C24 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.109 H 112.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#787C24
RGBrgb(120, 124, 36)
HSLhsl(63, 55%, 31%)
HSVhsv(63, 71%, 49%)
CMYKcmyk(3.2%, 0%, 71%, 51.4%)
CIE-LABlab(50.14, -13.26, 45.18)
CIE-LCHlch(50.14, 47.09, 106.35°)
OKLaboklab(56.56% -0.0407 0.101)
OKLCHoklch(56.56% 0.109 112)
XYZxyz(15.2723, 18.5361, 4.4420)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C24 #28247C
analogous
#7C5424 #787C24 #4C7C24
triadic
#787C24 #24787C #7C2478
tetradic
#787C24 #247C54 #28247C #7C244C
square
#787C24 #247C54 #28247C #7C244C
split-complementary
#787C24 #244C7C #54247C
monochromatic
#1C1D08 #4A4D16 #787C24 #A6AB32 #C6CC4F

Accessibility & contrast

On white

4.46
#787C24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#787C24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C24
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C24#FFFFFF#000000##000000
##787C241.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867616
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c24;
/* rgb */ color: rgb(120, 124, 36);
/* oklch */ color: oklch(56.6% 0.109 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#787c24',
    950: '#000000',
  },
}
SCSS
$custom: #787c24;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#787c24",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 36
  },
  "hsl": {
    "h": 62.727,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56561,
    "c": 0.10893,
    "h": 112
  },
  "luminance": 0.18536
}

Semantic roles & 50–950 ramp

primary
#787C24
secondary
#524DAE
accent
#49DE50
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C24

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

Preview Lab → · Contrast checker → · Palette generator →

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