#786017#786017

#786017 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 50.0% C 0.093 H 89.5°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#786017
RGBrgb(120, 96, 23)
HSLhsl(45, 68%, 28%)
HSVhsv(45, 81%, 47%)
CMYKcmyk(0%, 20%, 80.8%, 52.9%)
CIE-LABlab(41.88, 1.94, 42.41)
CIE-LCHlch(41.88, 42.45, 87.38°)
OKLaboklab(49.97% 0.0008 0.0925)
OKLCHoklch(49.97% 0.093 89.5)
XYZxyz(12.0840, 12.4215, 2.5716)
Luminance0.1242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786017 #172F78
analogous
#783017 #786017 #5F7817
triadic
#786017 #177860 #601778
tetradic
#786017 #177830 #172F78 #78175F
square
#786017 #177830 #172F78 #78175F
split-complementary
#786017 #175F78 #301778
monochromatic
#1A1505 #45370D #786017 #AB8921 #D8AF32

Accessibility & contrast

On white

6.03
#786017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#786017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786017
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786017#FFFFFF#000000##FFFFFF
##7860171.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F09
Deuteranopia (green-blind)
#72661B
Tritanopia (blue-blind)
#835752
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #786017;
/* rgb */ color: rgb(120, 96, 23);
/* oklch */ color: oklch(50.0% 0.093 89.5);
Tailwind
colors: {
  custom: {
    50: '#a38c5b',
    500: '#786017',
    950: '#000000',
  },
}
SCSS
$custom: #786017;
$custom-light: #a38c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#786017",
  "rgb": {
    "r": 120,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 45.155,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.4997,
    "c": 0.09252,
    "h": 89.5
  },
  "luminance": 0.12421
}

Semantic roles & 50–950 ramp

primary
#786017
secondary
#3E59AD
accent
#68EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786017

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

Preview Lab → · Contrast checker → · Palette generator →

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