#787E12#787E12

#787E12 is a mid, vivid yellow. Relative luminance 0.190; OKLCH L 56.9% C 0.121 H 113.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#787E12
RGBrgb(120, 126, 18)
HSLhsl(63, 75%, 28%)
HSVhsv(63, 86%, 49%)
CMYKcmyk(4.8%, 0%, 85.7%, 50.6%)
CIE-LABlab(50.64, -15.15, 51.76)
CIE-LCHlch(50.64, 53.93, 106.31°)
OKLaboklab(56.93% -0.0476 0.1116)
OKLCHoklch(56.93% 0.121 113.1)
XYZxyz(15.3163, 18.9588, 3.4247)
Luminance0.1896 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E12 #18127E
analogous
#7E4E12 #787E12 #427E12
triadic
#787E12 #12787E #7E1278
tetradic
#787E12 #127E4E #18127E #7E1242
square
#787E12 #127E4E #18127E #7E1242
split-complementary
#787E12 #12427E #4E127E
monochromatic
#1A1B04 #45480A #787E12 #ABB41A #D6E12A

Accessibility & contrast

On white

4.38
#787E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#787E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E12
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E12#FFFFFF#000000##000000
##787E121.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A1D
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e12;
/* rgb */ color: rgb(120, 126, 18);
/* oklch */ color: oklch(56.9% 0.121 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35d',
    500: '#787e12',
    950: '#000000',
  },
}
SCSS
$custom: #787e12;
$custom-light: #a2a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#787e12",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 63.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56929,
    "c": 0.12134,
    "h": 113.1
  },
  "luminance": 0.18958
}

Semantic roles & 50–950 ramp

primary
#787E12
secondary
#3F38B4
accent
#36F241
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E12

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

Preview Lab → · Contrast checker → · Palette generator →

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