#787117#787117

#787117 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 53.9% C 0.106 H 104.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#787117
RGBrgb(120, 113, 23)
HSLhsl(56, 68%, 28%)
HSVhsv(56, 81%, 47%)
CMYKcmyk(0%, 5.8%, 80.8%, 52.9%)
CIE-LABlab(46.80, -7.85, 46.90)
CIE-LCHlch(46.80, 47.56, 99.50°)
OKLaboklab(53.87% -0.0269 0.1021)
OKLCHoklch(53.87% 0.106 104.7)
XYZxyz(13.8061, 15.8657, 3.1456)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787117 #171E78
analogous
#784017 #787117 #4E7817
triadic
#787117 #177871 #711778
tetradic
#787117 #177840 #171E78 #78174E
square
#787117 #177840 #171E78 #78174E
split-complementary
#787117 #174E78 #401778
monochromatic
#1A1805 #45410D #787117 #ABA121 #D8CC32

Accessibility & contrast

On white

5.03
#787117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#787117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787117
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787117#FFFFFF#000000##FFFFFF
##7871171.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#7E711E
Tritanopia (blue-blind)
#826960
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #787117;
/* rgb */ color: rgb(120, 113, 23);
/* oklch */ color: oklch(53.9% 0.106 104.7);
Tailwind
colors: {
  custom: {
    50: '#a2995d',
    500: '#787117',
    950: '#000000',
  },
}
SCSS
$custom: #787117;
$custom-light: #a2995d;
$custom-dark: #000000;
JSON
{
  "hex": "#787117",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 55.67,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53868,
    "c": 0.10562,
    "h": 104.7
  },
  "luminance": 0.15865
}

Semantic roles & 50–950 ramp

primary
#787117
secondary
#3E46AD
accent
#4AEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #787117

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

Preview Lab → · Contrast checker → · Palette generator →

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