#787D27#787D27

#787D27 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.108 H 112.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#787D27
RGBrgb(120, 125, 39)
HSLhsl(63, 52%, 32%)
HSVhsv(63, 69%, 49%)
CMYKcmyk(4%, 0%, 68.8%, 51%)
CIE-LABlab(50.46, -13.62, 44.25)
CIE-LCHlch(50.46, 46.30, 107.10°)
OKLaboklab(56.83% -0.0414 0.0996)
OKLCHoklch(56.83% 0.108 112.6)
XYZxyz(15.4460, 18.8071, 4.7355)
Luminance0.1881 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D27 #2C277D
analogous
#7D5727 #787D27 #4D7D27
triadic
#787D27 #27787D #7D2778
tetradic
#787D27 #277D57 #2C277D #7D274D
square
#787D27 #277D57 #2C277D #7D274D
split-complementary
#787D27 #274D7D #57277D
monochromatic
#1E200A #4B4E18 #787D27 #A5AC36 #C3CA55

Accessibility & contrast

On white

4.41
#787D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#787D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D27
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D27#FFFFFF#000000##000000
##787D271.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771B
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d27;
/* rgb */ color: rgb(120, 125, 39);
/* oklch */ color: oklch(56.8% 0.108 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a266',
    500: '#787d27',
    950: '#000000',
  },
}
SCSS
$custom: #787d27;
$custom-light: #a2a266;
$custom-dark: #000000;
JSON
{
  "hex": "#787d27",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 63.488,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56825,
    "c": 0.10786,
    "h": 112.6
  },
  "luminance": 0.18807
}

Semantic roles & 50–950 ramp

primary
#787D27
secondary
#5751AF
accent
#4CDC54
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D27

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

Preview Lab → · Contrast checker → · Palette generator →

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