#787F24#787F24

#787F24 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.112 H 113.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#787F24
RGBrgb(120, 127, 36)
HSLhsl(65, 56%, 32%)
HSVhsv(65, 72%, 50%)
CMYKcmyk(5.5%, 0%, 71.7%, 50.2%)
CIE-LABlab(51.04, -14.87, 46.08)
CIE-LCHlch(51.04, 48.42, 107.89°)
OKLaboklab(57.28% -0.0452 0.1029)
OKLCHoklch(57.28% 0.112 113.7)
XYZxyz(15.6540, 19.2995, 4.5693)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F24 #2B247F
analogous
#7F5824 #787F24 #4B7F24
triadic
#787F24 #24787F #7F2478
tetradic
#787F24 #247F58 #2B247F #7F244B
square
#787F24 #247F58 #2B247F #7F244B
split-complementary
#787F24 #244B7F #58247F
monochromatic
#1E2009 #4B4F16 #787F24 #A5AF32 #C4CD50

Accessibility & contrast

On white

4.32
#787F24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#787F24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F24
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F24#FFFFFF#000000##000000
##787F241.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897915
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f24;
/* rgb */ color: rgb(120, 127, 36);
/* oklch */ color: oklch(57.3% 0.112 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a465',
    500: '#787f24',
    950: '#000000',
  },
}
SCSS
$custom: #787f24;
$custom-light: #a2a465;
$custom-dark: #000000;
JSON
{
  "hex": "#787f24",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 36
  },
  "hsl": {
    "h": 64.615,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57278,
    "c": 0.11242,
    "h": 113.7
  },
  "luminance": 0.19299
}

Semantic roles & 50–950 ramp

primary
#787F24
secondary
#554EB1
accent
#49DF54
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F24

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

Preview Lab → · Contrast checker → · Palette generator →

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