#786915#786915

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

Color values

HEX#786915
RGBrgb(120, 105, 21)
HSLhsl(51, 70%, 28%)
HSVhsv(51, 83%, 47%)
CMYKcmyk(0%, 12.5%, 82.5%, 52.9%)
CIE-LABlab(44.45, -3.38, 45.47)
CIE-LCHlch(44.45, 45.60, 94.25°)
OKLaboklab(52% -0.0145 0.0987)
OKLCHoklch(52% 0.1 98.4)
XYZxyz(12.9333, 14.1510, 2.7595)
Luminance0.1415 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786915 #152478
analogous
#783715 #786915 #567815
triadic
#786915 #157869 #691578
tetradic
#786915 #157837 #152478 #781556
square
#786915 #157837 #152478 #781556
split-complementary
#786915 #155678 #371578
monochromatic
#1A1705 #443B0C #786915 #AC971E #DAC02D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786915#FFFFFF#000000##FFFFFF
##7869151.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)
#746601
Deuteranopia (green-blind)
#786B1B
Tritanopia (blue-blind)
#826059
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #786915;
/* rgb */ color: rgb(120, 105, 21);
/* oklch */ color: oklch(52.0% 0.100 98.4);
Tailwind
colors: {
  custom: {
    50: '#a3935b',
    500: '#786915',
    950: '#000000',
  },
}
SCSS
$custom: #786915;
$custom-light: #a3935b;
$custom-dark: #000000;
JSON
{
  "hex": "#786915",
  "rgb": {
    "r": 120,
    "g": 105,
    "b": 21
  },
  "hsl": {
    "h": 50.909,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.09971,
    "h": 98.4
  },
  "luminance": 0.1415
}

Semantic roles & 50–950 ramp

primary
#786915
secondary
#3B4DAE
accent
#56ED3B
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #786915

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

Preview Lab → · Contrast checker → · Palette generator →

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