#787C17#787C17

#787C17 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.117 H 112.0°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#787C17
RGBrgb(120, 124, 23)
HSLhsl(62, 69%, 29%)
HSVhsv(62, 81%, 49%)
CMYKcmyk(3.2%, 0%, 81.5%, 51.4%)
CIE-LABlab(50.06, -13.90, 49.83)
CIE-LCHlch(50.06, 51.73, 105.58°)
OKLaboklab(56.47% -0.0438 0.1084)
OKLCHoklch(56.47% 0.117 112)
XYZxyz(15.1086, 18.4706, 3.5798)
Luminance0.1847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C17 #1B177C
analogous
#7C4E17 #787C17 #467C17
triadic
#787C17 #17787C #7C1778
tetradic
#787C17 #177C4E #1B177C #7C1746
square
#787C17 #177C4E #1B177C #7C1746
split-complementary
#787C17 #17467C #4E177C
monochromatic
#191A05 #46480D #787C17 #AAB021 #D3D934

Accessibility & contrast

On white

4.47
#787C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#787C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C17
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C17#FFFFFF#000000##000000
##787C171.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#877820
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c17;
/* rgb */ color: rgb(120, 124, 23);
/* oklch */ color: oklch(56.5% 0.117 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a15e',
    500: '#787c17',
    950: '#000000',
  },
}
SCSS
$custom: #787c17;
$custom-light: #a2a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#787c17",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 62.376,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56474,
    "c": 0.1169,
    "h": 112
  },
  "luminance": 0.1847
}

Semantic roles & 50–950 ramp

primary
#787C17
secondary
#433EB1
accent
#3CEC43
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787C17

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

Preview Lab → · Contrast checker → · Palette generator →

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