#787F11#787F11

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

Color values

HEX#787F11
RGBrgb(120, 127, 17)
HSLhsl(64, 76%, 28%)
HSVhsv(64, 87%, 50%)
CMYKcmyk(5.5%, 0%, 86.6%, 50.2%)
CIE-LABlab(50.94, -15.71, 52.27)
CIE-LCHlch(50.94, 54.58, 106.73°)
OKLaboklab(57.17% -0.0492 0.1125)
OKLCHoklch(57.17% 0.123 113.6)
XYZxyz(15.4368, 19.2126, 3.4254)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F11 #18117F
analogous
#7F4F11 #787F11 #417F11
triadic
#787F11 #11787F #7F1178
tetradic
#787F11 #117F4F #18117F #7F1141
square
#787F11 #117F4F #18117F #7F1141
split-complementary
#787F11 #11417F #4F117F
monochromatic
#1A1B04 #45490A #787F11 #ABB518 #D6E228

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F11#FFFFFF#000000##000000
##787F111.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)
#897A1D
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f11;
/* rgb */ color: rgb(120, 127, 17);
/* oklch */ color: oklch(57.2% 0.123 113.6);
Tailwind
colors: {
  custom: {
    50: '#a2a35d',
    500: '#787f11',
    950: '#000000',
  },
}
SCSS
$custom: #787f11;
$custom-light: #a2a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#787f11",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 17
  },
  "hsl": {
    "h": 63.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.57166,
    "c": 0.12283,
    "h": 113.6
  },
  "luminance": 0.19212
}

Semantic roles & 50–950 ramp

primary
#787F11
secondary
#3F37B5
accent
#35F341
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F11

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

Preview Lab → · Contrast checker → · Palette generator →

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