#787917#787917

#787917 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.8% C 0.114 H 110.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#787917
RGBrgb(120, 121, 23)
HSLhsl(61, 68%, 28%)
HSVhsv(61, 81%, 47%)
CMYKcmyk(0.8%, 0%, 81%, 52.5%)
CIE-LABlab(49.17, -12.27, 49.03)
CIE-LCHlch(49.17, 50.54, 104.05°)
OKLaboklab(55.76% -0.0392 0.1067)
OKLCHoklch(55.76% 0.114 110.2)
XYZxyz(14.7383, 17.7301, 3.4563)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787917 #181779
analogous
#794917 #787917 #477917
triadic
#787917 #177879 #791778
tetradic
#787917 #177949 #181779 #791747
square
#787917 #177949 #181779 #791747
split-complementary
#787917 #174779 #491779
monochromatic
#1A1A05 #45460D #787917 #ABAC21 #D6D832

Accessibility & contrast

On white

4.62
#787917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#787917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787917
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787917#FFFFFF#000000##FFFFFF
##7879171.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#847620
Tritanopia (blue-blind)
#817167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #787917;
/* rgb */ color: rgb(120, 121, 23);
/* oklch */ color: oklch(55.8% 0.114 110.2);
Tailwind
colors: {
  custom: {
    50: '#a29f5e',
    500: '#787917',
    950: '#000000',
  },
}
SCSS
$custom: #787917;
$custom-light: #a29f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787917",
  "rgb": {
    "r": 120,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 60.612,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55758,
    "c": 0.11368,
    "h": 110.2
  },
  "luminance": 0.1773
}

Semantic roles & 50–950 ramp

primary
#787917
secondary
#3F3EAE
accent
#3DEB3F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787917

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

Preview Lab → · Contrast checker → · Palette generator →

#787917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva