#787D13#787D13

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

Color values

HEX#787D13
RGBrgb(120, 125, 19)
HSLhsl(63, 74%, 28%)
HSVhsv(63, 85%, 49%)
CMYKcmyk(4%, 0%, 84.8%, 51%)
CIE-LABlab(50.34, -14.58, 51.24)
CIE-LCHlch(50.34, 53.28, 105.88°)
OKLaboklab(56.69% -0.0459 0.1107)
OKLCHoklch(56.69% 0.12 112.5)
XYZxyz(15.1974, 18.7077, 3.4264)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D13 #18137D
analogous
#7D4D13 #787D13 #437D13
triadic
#787D13 #13787D #7D1378
tetradic
#787D13 #137D4D #18137D #7D1343
square
#787D13 #137D4D #18137D #7D1343
split-complementary
#787D13 #13437D #4D137D
monochromatic
#1A1B04 #45480B #787D13 #ABB21B #D6DF2C

Accessibility & contrast

On white

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

On black

4.74
#787D13 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787D13
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787D13#FFFFFF#000000##000000
##787D131.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787d13;
/* rgb */ color: rgb(120, 125, 19);
/* oklch */ color: oklch(56.7% 0.120 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25d',
    500: '#787d13',
    950: '#000000',
  },
}
SCSS
$custom: #787d13;
$custom-light: #a2a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#787d13",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 19
  },
  "hsl": {
    "h": 62.83,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56694,
    "c": 0.11984,
    "h": 112.5
  },
  "luminance": 0.18707
}

Semantic roles & 50–950 ramp

primary
#787D13
secondary
#3F39B3
accent
#38F040
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D13

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

Preview Lab → · Contrast checker → · Palette generator →

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