#787517#787517

#787517 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.8% C 0.110 H 107.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787517
RGBrgb(120, 117, 23)
HSLhsl(58, 68%, 28%)
HSVhsv(58, 81%, 47%)
CMYKcmyk(0%, 2.5%, 80.8%, 52.9%)
CIE-LABlab(47.98, -10.07, 47.97)
CIE-LCHlch(47.98, 49.01, 101.86°)
OKLaboklab(54.81% -0.0331 0.1044)
OKLCHoklch(54.81% 0.11 107.6)
XYZxyz(14.2623, 16.7780, 3.2977)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787517 #171A78
analogous
#784417 #787517 #4A7817
triadic
#787517 #177875 #751778
tetradic
#787517 #177844 #171A78 #78174A
square
#787517 #177844 #171A78 #78174A
split-complementary
#787517 #174A78 #441778
monochromatic
#1A1905 #45430D #787517 #ABA721 #D8D332

Accessibility & contrast

On white

4.82
#787517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#787517 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787517
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787517#FFFFFF#000000##FFFFFF
##7875171.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#81731F
Tritanopia (blue-blind)
#816D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #787517;
/* rgb */ color: rgb(120, 117, 23);
/* oklch */ color: oklch(54.8% 0.110 107.6);
Tailwind
colors: {
  custom: {
    50: '#a29c5d',
    500: '#787517',
    950: '#000000',
  },
}
SCSS
$custom: #787517;
$custom-light: #a29c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#787517",
  "rgb": {
    "r": 120,
    "g": 117,
    "b": 23
  },
  "hsl": {
    "h": 58.144,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54809,
    "c": 0.10955,
    "h": 107.6
  },
  "luminance": 0.16778
}

Semantic roles & 50–950 ramp

primary
#787517
secondary
#3E41AD
accent
#42EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787517

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

Preview Lab → · Contrast checker → · Palette generator →

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