#787E11#787E11

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

Color values

HEX#787E11
RGBrgb(120, 126, 17)
HSLhsl(63, 76%, 28%)
HSVhsv(63, 87%, 49%)
CMYKcmyk(4.8%, 0%, 86.5%, 50.6%)
CIE-LABlab(50.64, -15.18, 52.02)
CIE-LCHlch(50.64, 54.19, 106.27°)
OKLaboklab(56.93% -0.0477 0.112)
OKLCHoklch(56.93% 0.122 113.1)
XYZxyz(15.3083, 18.9556, 3.3826)
Luminance0.1895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E11 #17117E
analogous
#7E4D11 #787E11 #417E11
triadic
#787E11 #11787E #7E1178
tetradic
#787E11 #117E4D #17117E #7E1141
square
#787E11 #117E4D #17117E #7E1141
split-complementary
#787E11 #11417E #4D117E
monochromatic
#1A1B04 #45480A #787E11 #ABB418 #D8E227

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E11#FFFFFF#000000##000000
##787E111.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)
#887700
Deuteranopia (green-blind)
#887A1D
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e11;
/* rgb */ color: rgb(120, 126, 17);
/* oklch */ color: oklch(56.9% 0.122 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35c',
    500: '#787e11',
    950: '#000000',
  },
}
SCSS
$custom: #787e11;
$custom-light: #a2a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#787e11",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 17
  },
  "hsl": {
    "h": 63.303,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.56925,
    "c": 0.12174,
    "h": 113.1
  },
  "luminance": 0.18955
}

Semantic roles & 50–950 ramp

primary
#787E11
secondary
#3E37B4
accent
#35F33F
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E11

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

Preview Lab → · Contrast checker → · Palette generator →

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