#787A23#787A23

#787A23 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.107 H 110.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#787A23
RGBrgb(120, 122, 35)
HSLhsl(61, 55%, 31%)
HSVhsv(61, 71%, 48%)
CMYKcmyk(1.6%, 0%, 71.3%, 52.2%)
CIE-LABlab(49.54, -12.23, 44.99)
CIE-LCHlch(49.54, 46.63, 105.21°)
OKLaboklab(56.08% -0.038 0.1004)
OKLCHoklch(56.08% 0.107 110.7)
XYZxyz(15.0091, 18.0339, 4.2800)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A23 #25237A
analogous
#7A5023 #787A23 #4C7A23
triadic
#787A23 #23787A #7A2378
tetradic
#787A23 #237A50 #25237A #7A234C
square
#787A23 #237A50 #25237A #7A234C
split-complementary
#787A23 #234C7A #50237A
monochromatic
#1A1B08 #494A15 #787A23 #A7AA31 #C9CC4C

Accessibility & contrast

On white

4.56
#787A23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#787A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A23
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A23#FFFFFF#000000##000000
##787A231.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847415
Deuteranopia (green-blind)
#857729
Tritanopia (blue-blind)
#817269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a23;
/* rgb */ color: rgb(120, 122, 35);
/* oklch */ color: oklch(56.1% 0.107 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a064',
    500: '#787a23',
    950: '#000000',
  },
}
SCSS
$custom: #787a23;
$custom-light: #a2a064;
$custom-dark: #000000;
JSON
{
  "hex": "#787a23",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 35
  },
  "hsl": {
    "h": 61.379,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56077,
    "c": 0.10738,
    "h": 110.7
  },
  "luminance": 0.18033
}

Semantic roles & 50–950 ramp

primary
#787A23
secondary
#4E4CAD
accent
#49DF4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787A23

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

Preview Lab → · Contrast checker → · Palette generator →

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