#786917#786917

#786917 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.0% C 0.099 H 98.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#786917
RGBrgb(120, 105, 23)
HSLhsl(51, 68%, 28%)
HSVhsv(51, 81%, 47%)
CMYKcmyk(0%, 12.5%, 80.8%, 52.9%)
CIE-LABlab(44.46, -3.30, 44.78)
CIE-LCHlch(44.46, 44.90, 94.22°)
OKLaboklab(52.01% -0.0141 0.0976)
OKLCHoklch(52.01% 0.099 98.2)
XYZxyz(12.9526, 14.1588, 2.8611)
Luminance0.1416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786917 #172678
analogous
#783917 #786917 #567817
triadic
#786917 #177869 #691778
tetradic
#786917 #177839 #172678 #781756
square
#786917 #177839 #172678 #781756
split-complementary
#786917 #175678 #391778
monochromatic
#1A1605 #453C0D #786917 #AB9621 #D8BE32

Accessibility & contrast

On white

5.48
#786917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#786917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786917
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786917#FFFFFF#000000##FFFFFF
##7869171.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#786B1D
Tritanopia (blue-blind)
#82605A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #786917;
/* rgb */ color: rgb(120, 105, 23);
/* oklch */ color: oklch(52.0% 0.099 98.2);
Tailwind
colors: {
  custom: {
    50: '#a2935c',
    500: '#786917',
    950: '#000000',
  },
}
SCSS
$custom: #786917;
$custom-light: #a2935c;
$custom-dark: #000000;
JSON
{
  "hex": "#786917",
  "rgb": {
    "r": 120,
    "g": 105,
    "b": 23
  },
  "hsl": {
    "h": 50.722,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5201,
    "c": 0.09861,
    "h": 98.2
  },
  "luminance": 0.14158
}

Semantic roles & 50–950 ramp

primary
#786917
secondary
#3E4FAD
accent
#58EB3D
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786917

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

Preview Lab → · Contrast checker → · Palette generator →

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