#787A18#787A18

#787A18 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.0% C 0.114 H 110.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#787A18
RGBrgb(120, 122, 24)
HSLhsl(61, 67%, 29%)
HSVhsv(61, 80%, 48%)
CMYKcmyk(1.6%, 0%, 80.3%, 52.2%)
CIE-LABlab(49.47, -12.78, 48.98)
CIE-LCHlch(49.47, 50.62, 104.62°)
OKLaboklab(56% -0.0406 0.1068)
OKLCHoklch(56% 0.114 110.8)
XYZxyz(14.8707, 17.9785, 3.5508)
Luminance0.1798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787A18 #1A187A
analogous
#7A4B18 #787A18 #477A18
triadic
#787A18 #18787A #7A1878
tetradic
#787A18 #187A4B #1A187A #7A1847
square
#787A18 #187A4B #1A187A #7A1847
split-complementary
#787A18 #18477A #4B187A
monochromatic
#191A05 #46470E #787A18 #AAAD22 #D4D735

Accessibility & contrast

On white

4.57
#787A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#787A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787A18
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787A18#FFFFFF#000000##000000
##787A181.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#857721
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787a18;
/* rgb */ color: rgb(120, 122, 24);
/* oklch */ color: oklch(56.0% 0.114 110.8);
Tailwind
colors: {
  custom: {
    50: '#a2a05f',
    500: '#787a18',
    950: '#000000',
  },
}
SCSS
$custom: #787a18;
$custom-light: #a2a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#787a18",
  "rgb": {
    "r": 120,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 61.224,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56002,
    "c": 0.11422,
    "h": 110.8
  },
  "luminance": 0.17978
}

Semantic roles & 50–950 ramp

primary
#787A18
secondary
#413FAF
accent
#3EEA41
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787A18

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

Preview Lab → · Contrast checker → · Palette generator →

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