#787817#787817

#787817 is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.5% C 0.113 H 109.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#787817
RGBrgb(120, 120, 23)
HSLhsl(60, 68%, 28%)
HSVhsv(60, 81%, 47%)
CMYKcmyk(0%, 0%, 80.8%, 52.9%)
CIE-LABlab(48.87, -11.73, 48.77)
CIE-LCHlch(48.87, 50.16, 103.52°)
OKLaboklab(55.52% -0.0377 0.1061)
OKLCHoklch(55.52% 0.113 109.6)
XYZxyz(14.6174, 17.4883, 3.4160)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787817 #171778
analogous
#784717 #787817 #477817
triadic
#787817 #177878 #781778
tetradic
#787817 #177847 #171778 #781747
square
#787817 #177847 #171778 #781747
split-complementary
#787817 #174778 #471778
monochromatic
#1A1A05 #45450D #787817 #ABAB21 #D8D832

Accessibility & contrast

On white

4.67
#787817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#787817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787817
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787817#FFFFFF#000000##FFFFFF
##7878171.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#837520
Tritanopia (blue-blind)
#817066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #787817;
/* rgb */ color: rgb(120, 120, 23);
/* oklch */ color: oklch(55.5% 0.113 109.6);
Tailwind
colors: {
  custom: {
    50: '#a29e5e',
    500: '#787817',
    950: '#000000',
  },
}
SCSS
$custom: #787817;
$custom-light: #a29e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787817",
  "rgb": {
    "r": 120,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 60,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5552,
    "c": 0.11262,
    "h": 109.6
  },
  "luminance": 0.17488
}

Semantic roles & 50–950 ramp

primary
#787817
secondary
#3E3EAD
accent
#3DEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787817

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

Preview Lab → · Contrast checker → · Palette generator →

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