#787D18#787D18

#787D18 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.117 H 112.5°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#787D18
RGBrgb(120, 125, 24)
HSLhsl(63, 68%, 29%)
HSVhsv(63, 81%, 49%)
CMYKcmyk(4%, 0%, 80.8%, 51%)
CIE-LABlab(50.37, -14.40, 49.79)
CIE-LCHlch(50.37, 51.83, 106.13°)
OKLaboklab(56.72% -0.045 0.1085)
OKLCHoklch(56.72% 0.117 112.5)
XYZxyz(15.2447, 18.7266, 3.6755)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D18 #1D187D
analogous
#7D5018 #787D18 #467D18
triadic
#787D18 #18787D #7D1878
tetradic
#787D18 #187D50 #1D187D #7D1846
square
#787D18 #187D50 #1D187D #7D1846
split-complementary
#787D18 #18467D #50187D
monochromatic
#191A05 #474A0E #787D18 #A9B022 #D1D937

Accessibility & contrast

On white

4.43
#787D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#787D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D18
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D18#FFFFFF#000000##000000
##787D181.004.434.754.75
#FFFFFF4.431.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d18;
/* rgb */ color: rgb(120, 125, 24);
/* oklch */ color: oklch(56.7% 0.117 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25f',
    500: '#787d18',
    950: '#000000',
  },
}
SCSS
$custom: #787d18;
$custom-light: #a2a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#787d18",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 62.97,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56719,
    "c": 0.11748,
    "h": 112.5
  },
  "luminance": 0.18726
}

Semantic roles & 50–950 ramp

primary
#787D18
secondary
#453FB2
accent
#3DEB46
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D18

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

Preview Lab → · Contrast checker → · Palette generator →

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