#787D23#787D23

#787D23 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#787D23
RGBrgb(120, 125, 35)
HSLhsl(63, 56%, 31%)
HSVhsv(63, 72%, 49%)
CMYKcmyk(4%, 0%, 72%, 51%)
CIE-LABlab(50.43, -13.86, 45.88)
CIE-LCHlch(50.43, 47.93, 106.81°)
OKLaboklab(56.79% -0.0425 0.1023)
OKLCHoklch(56.79% 0.111 112.6)
XYZxyz(15.3832, 18.7820, 4.4047)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D23 #28237D
analogous
#7D5523 #787D23 #4B7D23
triadic
#787D23 #23787D #7D2378
tetradic
#787D23 #237D55 #28237D #7D234B
square
#787D23 #237D55 #28237D #7D234B
split-complementary
#787D23 #234B7D #55237D
monochromatic
#1C1D08 #4A4D16 #787D23 #A6AD30 #C6CD4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D23#FFFFFF#000000##000000
##787D231.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)
#877714
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d23;
/* rgb */ color: rgb(120, 125, 35);
/* oklch */ color: oklch(56.8% 0.111 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a264',
    500: '#787d23',
    950: '#000000',
  },
}
SCSS
$custom: #787d23;
$custom-light: #a2a264;
$custom-dark: #000000;
JSON
{
  "hex": "#787d23",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 63.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56792,
    "c": 0.11079,
    "h": 112.6
  },
  "luminance": 0.18782
}

Semantic roles & 50–950 ramp

primary
#787D23
secondary
#524CAF
accent
#48E051
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787D23

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

Preview Lab → · Contrast checker → · Palette generator →

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