#786B24#786B24

#786B24 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.091 H 98.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#786B24
RGBrgb(120, 107, 36)
HSLhsl(51, 54%, 31%)
HSVhsv(51, 70%, 47%)
CMYKcmyk(0%, 10.8%, 70%, 52.9%)
CIE-LABlab(45.13, -3.77, 40.09)
CIE-LCHlch(45.13, 40.26, 95.38°)
OKLaboklab(52.57% -0.0139 0.0903)
OKLCHoklch(52.57% 0.091 98.8)
XYZxyz(13.3225, 14.6365, 3.7921)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B24 #243178
analogous
#784124 #786B24 #5B7824
triadic
#786B24 #24786B #6B2478
tetradic
#786B24 #247841 #243178 #78245B
square
#786B24 #247841 #243178 #78245B
split-complementary
#786B24 #245B78 #412478
monochromatic
#1A1708 #494116 #786B24 #A79532 #CAB64D

Accessibility & contrast

On white

5.35
#786B24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#786B24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B24
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B24#FFFFFF#000000##FFFFFF
##786B241.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76681B
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#82635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b24;
/* rgb */ color: rgb(120, 107, 36);
/* oklch */ color: oklch(52.6% 0.091 98.8);
Tailwind
colors: {
  custom: {
    50: '#a29563',
    500: '#786b24',
    950: '#000000',
  },
}
SCSS
$custom: #786b24;
$custom-light: #a29563;
$custom-dark: #000000;
JSON
{
  "hex": "#786b24",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 36
  },
  "hsl": {
    "h": 50.714,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.09134,
    "h": 98.8
  },
  "luminance": 0.14636
}

Semantic roles & 50–950 ramp

primary
#786B24
secondary
#4D5CAB
accent
#61DD4B
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786B24

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

Preview Lab → · Contrast checker → · Palette generator →

#786B24 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva