#787C22#787C22

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

Color values

HEX#787C22
RGBrgb(120, 124, 34)
HSLhsl(63, 57%, 31%)
HSVhsv(63, 73%, 49%)
CMYKcmyk(3.2%, 0%, 72.6%, 51.4%)
CIE-LABlab(50.13, -13.37, 45.98)
CIE-LCHlch(50.13, 47.88, 106.22°)
OKLaboklab(56.55% -0.0413 0.1023)
OKLCHoklch(56.55% 0.11 112)
XYZxyz(15.2426, 18.5242, 4.2857)
Luminance0.1852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C22 #26227C
analogous
#7C5322 #787C22 #4B7C22
triadic
#787C22 #22787C #7C2278
tetradic
#787C22 #227C53 #26227C #7C224B
square
#787C22 #227C53 #26227C #7C224B
split-complementary
#787C22 #224B7C #53227C
monochromatic
#1B1C08 #4A4C15 #787C22 #A6AC2F #C8CE4B

Accessibility & contrast

On white

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

On black

4.70
#787C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C22
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C22#FFFFFF#000000##000000
##787C221.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#867613
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#80746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c22;
/* rgb */ color: rgb(120, 124, 34);
/* oklch */ color: oklch(56.5% 0.110 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a164',
    500: '#787c22',
    950: '#000000',
  },
}
SCSS
$custom: #787c22;
$custom-light: #a2a164;
$custom-dark: #000000;
JSON
{
  "hex": "#787c22",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 62.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56545,
    "c": 0.11034,
    "h": 112
  },
  "luminance": 0.18524
}

Semantic roles & 50–950 ramp

primary
#787C22
secondary
#504BAF
accent
#48E04E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C22

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

Preview Lab → · Contrast checker → · Palette generator →

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