#786E1B#786E1B

#786E1B is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.100 H 102.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786E1B
RGBrgb(120, 110, 27)
HSLhsl(54, 63%, 29%)
HSVhsv(54, 78%, 47%)
CMYKcmyk(0%, 8.3%, 77.5%, 52.9%)
CIE-LABlab(45.94, -5.98, 44.67)
CIE-LCHlch(45.94, 45.07, 97.62°)
OKLaboklab(53.19% -0.0212 0.0982)
OKLCHoklch(53.19% 0.1 102.2)
XYZxyz(13.5201, 15.2247, 3.2632)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E1B #1B2578
analogous
#78401B #786E1B #54781B
triadic
#786E1B #1B786E #6E1B78
tetradic
#786E1B #1B7840 #1B2578 #781B54
square
#786E1B #1B7840 #1B2578 #781B54
split-complementary
#786E1B #1B5478 #401B78
monochromatic
#191706 #464010 #786E1B #AA9C26 #D3C23B

Accessibility & contrast

On white

5.19
#786E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#786E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E1B
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E1B#FFFFFF#000000##FFFFFF
##786E1B1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A0B
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#82665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e1b;
/* rgb */ color: rgb(120, 110, 27);
/* oklch */ color: oklch(53.2% 0.100 102.2);
Tailwind
colors: {
  custom: {
    50: '#a2975e',
    500: '#786e1b',
    950: '#000000',
  },
}
SCSS
$custom: #786e1b;
$custom-light: #a2975e;
$custom-dark: #000000;
JSON
{
  "hex": "#786e1b",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 27
  },
  "hsl": {
    "h": 53.548,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53193,
    "c": 0.10048,
    "h": 102.2
  },
  "luminance": 0.15224
}

Semantic roles & 50–950 ramp

primary
#786E1B
secondary
#434EAC
accent
#53E641
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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