#787B18#787B18

#787B18 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.2% C 0.115 H 111.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#787B18
RGBrgb(120, 123, 24)
HSLhsl(62, 67%, 29%)
HSVhsv(62, 80%, 48%)
CMYKcmyk(2.4%, 0%, 80.5%, 51.8%)
CIE-LABlab(49.77, -13.32, 49.25)
CIE-LCHlch(49.77, 51.02, 105.13°)
OKLaboklab(56.24% -0.0421 0.1074)
OKLCHoklch(56.24% 0.115 111.4)
XYZxyz(14.9941, 18.2253, 3.5920)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B18 #1B187B
analogous
#7B4D18 #787B18 #477B18
triadic
#787B18 #18787B #7B1878
tetradic
#787B18 #187B4D #1B187B #7B1847
square
#787B18 #187B4D #1B187B #7B1847
split-complementary
#787B18 #18477B #4D187B
monochromatic
#191A05 #46480E #787B18 #AAAE22 #D3D836

Accessibility & contrast

On white

4.52
#787B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#787B18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B18
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B18#FFFFFF#000000##000000
##787B181.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787b18;
/* rgb */ color: rgb(120, 123, 24);
/* oklch */ color: oklch(56.2% 0.115 111.4);
Tailwind
colors: {
  custom: {
    50: '#a2a15f',
    500: '#787b18',
    950: '#000000',
  },
}
SCSS
$custom: #787b18;
$custom-light: #a2a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#787b18",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 61.818,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5624,
    "c": 0.1153,
    "h": 111.4
  },
  "luminance": 0.18225
}

Semantic roles & 50–950 ramp

primary
#787B18
secondary
#433FB0
accent
#3EEA43
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787B18

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

Preview Lab → · Contrast checker → · Palette generator →

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