#787E22#787E22

#787E22 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.113 H 113.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#787E22
RGBrgb(120, 126, 34)
HSLhsl(64, 58%, 31%)
HSVhsv(64, 73%, 49%)
CMYKcmyk(4.8%, 0%, 73%, 50.6%)
CIE-LABlab(50.72, -14.45, 46.56)
CIE-LCHlch(50.72, 48.76, 107.24°)
OKLaboklab(57.02% -0.0443 0.1036)
OKLCHoklch(57.02% 0.113 113.1)
XYZxyz(15.4958, 19.0306, 4.3700)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E22 #28227E
analogous
#7E5622 #787E22 #4A7E22
triadic
#787E22 #22787E #7E2278
tetradic
#787E22 #227E56 #28227E #7E224A
square
#787E22 #227E56 #28227E #7E224A
split-complementary
#787E22 #224A7E #56227E
monochromatic
#1C1E08 #4A4E15 #787E22 #A6AE2F #C6CF4C

Accessibility & contrast

On white

4.37
#787E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#787E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E22
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E22#FFFFFF#000000##000000
##787E221.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887812
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e22;
/* rgb */ color: rgb(120, 126, 34);
/* oklch */ color: oklch(57.0% 0.113 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a364',
    500: '#787e22',
    950: '#000000',
  },
}
SCSS
$custom: #787e22;
$custom-light: #a2a364;
$custom-dark: #000000;
JSON
{
  "hex": "#787e22",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 63.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57023,
    "c": 0.11264,
    "h": 113.1
  },
  "luminance": 0.1903
}

Semantic roles & 50–950 ramp

primary
#787E22
secondary
#524BB1
accent
#47E151
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E22

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

Preview Lab → · Contrast checker → · Palette generator →

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