#787317#787317

#787317 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.3% C 0.108 H 106.2°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#787317
RGBrgb(120, 115, 23)
HSLhsl(57, 68%, 28%)
HSVhsv(57, 81%, 47%)
CMYKcmyk(0%, 4.2%, 80.8%, 52.9%)
CIE-LABlab(47.39, -8.96, 47.44)
CIE-LCHlch(47.39, 48.27, 100.70°)
OKLaboklab(54.34% -0.03 0.1033)
OKLCHoklch(54.34% 0.108 106.2)
XYZxyz(14.0317, 16.3169, 3.2208)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787317 #171C78
analogous
#784217 #787317 #4C7817
triadic
#787317 #177873 #731778
tetradic
#787317 #177842 #171C78 #78174C
square
#787317 #177842 #171C78 #78174C
split-complementary
#787317 #174C78 #421778
monochromatic
#1A1905 #45420D #787317 #ABA421 #D8CF32

Accessibility & contrast

On white

4.93
#787317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#787317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787317
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787317#FFFFFF#000000##FFFFFF
##7873171.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#80721F
Tritanopia (blue-blind)
#816B62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #787317;
/* rgb */ color: rgb(120, 115, 23);
/* oklch */ color: oklch(54.3% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a29b5d',
    500: '#787317',
    950: '#000000',
  },
}
SCSS
$custom: #787317;
$custom-light: #a29b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787317",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 23
  },
  "hsl": {
    "h": 56.907,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54338,
    "c": 0.10755,
    "h": 106.2
  },
  "luminance": 0.16316
}

Semantic roles & 50–950 ramp

primary
#787317
secondary
#3E43AD
accent
#46EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787317

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

Preview Lab → · Contrast checker → · Palette generator →

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