#787D12#787D12

#787D12 is a mid, vivid 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#787D12
RGBrgb(120, 125, 18)
HSLhsl(63, 75%, 28%)
HSVhsv(63, 86%, 49%)
CMYKcmyk(4%, 0%, 85.6%, 51%)
CIE-LABlab(50.34, -14.61, 51.51)
CIE-LCHlch(50.34, 53.54, 105.84°)
OKLaboklab(56.69% -0.0461 0.1111)
OKLCHoklch(56.69% 0.12 112.5)
XYZxyz(15.1891, 18.7043, 3.3823)
Luminance0.1870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787D12 #17127D
analogous
#7D4C12 #787D12 #427D12
triadic
#787D12 #12787D #7D1278
tetradic
#787D12 #127D4C #17127D #7D1242
square
#787D12 #127D4C #17127D #7D1242
split-complementary
#787D12 #12427D #4C127D
monochromatic
#1A1B04 #45480A #787D12 #ABB21A #D8E029

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787D12#FFFFFF#000000##000000
##787D121.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)
#87791D
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #787d12;
/* rgb */ color: rgb(120, 125, 18);
/* oklch */ color: oklch(56.7% 0.120 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a25d',
    500: '#787d12',
    950: '#000000',
  },
}
SCSS
$custom: #787d12;
$custom-light: #a2a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#787d12",
  "rgb": {
    "r": 120,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 62.804,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.56689,
    "c": 0.12026,
    "h": 112.5
  },
  "luminance": 0.18704
}

Semantic roles & 50–950 ramp

primary
#787D12
secondary
#3E38B3
accent
#36F13F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0F05
muted
#7F7E79

Preview Lab

Preview with #787D12

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

Preview Lab → · Contrast checker → · Palette generator →

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