#787E17#787E17

#787E17 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.119 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#787E17
RGBrgb(120, 126, 23)
HSLhsl(63, 69%, 29%)
HSVhsv(63, 82%, 49%)
CMYKcmyk(4.8%, 0%, 81.7%, 50.6%)
CIE-LABlab(50.66, -14.97, 50.36)
CIE-LCHlch(50.66, 52.54, 106.56°)
OKLaboklab(56.95% -0.0467 0.1095)
OKLCHoklch(56.95% 0.119 113.1)
XYZxyz(15.3617, 18.9770, 3.6641)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E17 #1D177E
analogous
#7E5117 #787E17 #457E17
triadic
#787E17 #17787E #7E1778
tetradic
#787E17 #177E51 #1D177E #7E1745
square
#787E17 #177E51 #1D177E #7E1745
split-complementary
#787E17 #17457E #51177E
monochromatic
#191A05 #474A0E #787E17 #A9B220 #D1DA35

Accessibility & contrast

On white

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

On black

4.80
#787E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E17
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E17#FFFFFF#000000##000000
##787E171.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787e17;
/* rgb */ color: rgb(120, 126, 23);
/* oklch */ color: oklch(57.0% 0.119 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a35f',
    500: '#787e17',
    950: '#000000',
  },
}
SCSS
$custom: #787e17;
$custom-light: #a2a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#787e17",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 63.495,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.11909,
    "h": 113.1
  },
  "luminance": 0.18977
}

Semantic roles & 50–950 ramp

primary
#787E17
secondary
#453EB3
accent
#3CEC46
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787E17

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

Preview Lab → · Contrast checker → · Palette generator →

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