#786317#786317

#786317 is a mid, moderate yellow. Relative luminance 0.130; OKLCH L 50.6% C 0.094 H 92.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#786317
RGBrgb(120, 99, 23)
HSLhsl(47, 68%, 28%)
HSVhsv(47, 81%, 47%)
CMYKcmyk(0%, 17.5%, 80.8%, 52.9%)
CIE-LABlab(42.73, 0.18, 43.20)
CIE-LCHlch(42.73, 43.20, 89.76°)
OKLaboklab(50.64% -0.0042 0.0942)
OKLCHoklch(50.64% 0.094 92.6)
XYZxyz(12.3629, 12.9794, 2.6645)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786317 #172C78
analogous
#783217 #786317 #5C7817
triadic
#786317 #177863 #631778
tetradic
#786317 #177832 #172C78 #78175C
square
#786317 #177832 #172C78 #78175C
split-complementary
#786317 #175C78 #321778
monochromatic
#1A1505 #45390D #786317 #AB8D21 #D8B432

Accessibility & contrast

On white

5.84
#786317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#786317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786317
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786317#FFFFFF#000000##FFFFFF
##7863171.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6108
Deuteranopia (green-blind)
#74671C
Tritanopia (blue-blind)
#825A55
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #786317;
/* rgb */ color: rgb(120, 99, 23);
/* oklch */ color: oklch(50.6% 0.094 92.6);
Tailwind
colors: {
  custom: {
    50: '#a38f5b',
    500: '#786317',
    950: '#000000',
  },
}
SCSS
$custom: #786317;
$custom-light: #a38f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#786317",
  "rgb": {
    "r": 120,
    "g": 99,
    "b": 23
  },
  "hsl": {
    "h": 47.01,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50644,
    "c": 0.0943,
    "h": 92.6
  },
  "luminance": 0.12979
}

Semantic roles & 50–950 ramp

primary
#786317
secondary
#3E56AD
accent
#63EB3D
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786317

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

Preview Lab → · Contrast checker → · Palette generator →

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