#787D22#787D22

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

Color values

HEX#787D22
RGBrgb(120, 125, 34)
HSLhsl(63, 57%, 31%)
HSVhsv(63, 73%, 49%)
CMYKcmyk(4%, 0%, 72.8%, 51%)
CIE-LABlab(50.42, -13.92, 46.27)
CIE-LCHlch(50.42, 48.32, 106.74°)
OKLaboklab(56.78% -0.0428 0.103)
OKLCHoklch(56.78% 0.111 112.6)
XYZxyz(15.3685, 18.7761, 4.3276)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D22 #27227D
analogous
#7D5422 #787D22 #4A7D22
triadic
#787D22 #22787D #7D2278
tetradic
#787D22 #227D54 #27227D #7D224A
square
#787D22 #227D54 #27227D #7D224A
split-complementary
#787D22 #224A7D #54227D
monochromatic
#1C1D08 #4A4D15 #787D22 #A6AD2F #C7CE4B

Accessibility & contrast

On white

4.42
#787D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D22#FFFFFF#000000##000000
##787D221.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877712
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d22;
/* rgb */ color: rgb(120, 125, 34);
/* oklch */ color: oklch(56.8% 0.111 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a264',
    500: '#787d22',
    950: '#000000',
  },
}
SCSS
$custom: #787d22;
$custom-light: #a2a264;
$custom-dark: #000000;
JSON
{
  "hex": "#787d22",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 63.297,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56784,
    "c": 0.11148,
    "h": 112.6
  },
  "luminance": 0.18776
}

Semantic roles & 50–950 ramp

primary
#787D22
secondary
#514BB0
accent
#47E050
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D22

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

Preview Lab → · Contrast checker → · Palette generator →

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