#787B22#787B22

#787B22 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.109 H 111.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#787B22
RGBrgb(120, 123, 34)
HSLhsl(62, 57%, 31%)
HSVhsv(62, 72%, 48%)
CMYKcmyk(2.4%, 0%, 72.4%, 51.8%)
CIE-LABlab(49.83, -12.83, 45.68)
CIE-LCHlch(49.83, 47.45, 105.69°)
OKLaboklab(56.31% -0.0397 0.1017)
OKLCHoklch(56.31% 0.109 111.3)
XYZxyz(15.1179, 18.2749, 4.2441)
Luminance0.1827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B22 #25227B
analogous
#7B5122 #787B22 #4B7B22
triadic
#787B22 #22787B #7B2278
tetradic
#787B22 #227B51 #25227B #7B224B
square
#787B22 #227B51 #25227B #7B224B
split-complementary
#787B22 #224B7B #51227B
monochromatic
#1A1B07 #494B15 #787B22 #A7AB2F #C9CD4A

Accessibility & contrast

On white

4.51
#787B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#787B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B22
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B22#FFFFFF#000000##000000
##787B221.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#857513
Deuteranopia (green-blind)
#857829
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b22;
/* rgb */ color: rgb(120, 123, 34);
/* oklch */ color: oklch(56.3% 0.109 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a163',
    500: '#787b22',
    950: '#000000',
  },
}
SCSS
$custom: #787b22;
$custom-light: #a2a163;
$custom-dark: #000000;
JSON
{
  "hex": "#787b22",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 62.022,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56307,
    "c": 0.10921,
    "h": 111.3
  },
  "luminance": 0.18274
}

Semantic roles & 50–950 ramp

primary
#787B22
secondary
#4E4BAE
accent
#48E04D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B22

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

Preview Lab → · Contrast checker → · Palette generator →

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