#787F12#787F12

#787F12 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.122 H 113.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#787F12
RGBrgb(120, 127, 18)
HSLhsl(64, 75%, 28%)
HSVhsv(64, 86%, 50%)
CMYKcmyk(5.5%, 0%, 85.8%, 50.2%)
CIE-LABlab(50.94, -15.68, 52.02)
CIE-LCHlch(50.94, 54.33, 106.78°)
OKLaboklab(57.17% -0.0491 0.1122)
OKLCHoklch(57.17% 0.122 113.6)
XYZxyz(15.4448, 19.2158, 3.4676)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F12 #19127F
analogous
#7F4F12 #787F12 #417F12
triadic
#787F12 #12787F #7F1278
tetradic
#787F12 #127F4F #19127F #7F1241
square
#787F12 #127F4F #19127F #7F1241
split-complementary
#787F12 #12417F #4F127F
monochromatic
#191B04 #45490A #787F12 #ABB51A #D5E12B

Accessibility & contrast

On white

4.34
#787F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#787F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F12
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F12#FFFFFF#000000##000000
##787F121.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A1E
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f12;
/* rgb */ color: rgb(120, 127, 18);
/* oklch */ color: oklch(57.2% 0.122 113.6);
Tailwind
colors: {
  custom: {
    50: '#a2a35d',
    500: '#787f12',
    950: '#000000',
  },
}
SCSS
$custom: #787f12;
$custom-light: #a2a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#787f12",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 63.853,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5717,
    "c": 0.12243,
    "h": 113.6
  },
  "luminance": 0.19215
}

Semantic roles & 50–950 ramp

primary
#787F12
secondary
#4038B5
accent
#36F242
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F12

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

Preview Lab → · Contrast checker → · Palette generator →

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