#786E21#786E21

#786E21 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.2% C 0.096 H 101.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#786E21
RGBrgb(120, 110, 33)
HSLhsl(53, 57%, 30%)
HSVhsv(53, 73%, 47%)
CMYKcmyk(0%, 8.3%, 72.5%, 52.9%)
CIE-LABlab(45.98, -5.66, 42.28)
CIE-LCHlch(45.98, 42.66, 97.63°)
OKLaboklab(53.24% -0.0197 0.0943)
OKLCHoklch(53.24% 0.096 101.8)
XYZxyz(13.5968, 15.2553, 3.6669)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E21 #212B78
analogous
#784221 #786E21 #577821
triadic
#786E21 #21786E #6E2178
tetradic
#786E21 #217842 #212B78 #782157
square
#786E21 #217842 #212B78 #782157
split-complementary
#786E21 #215778 #422178
monochromatic
#181607 #484214 #786E21 #A89A2E #CCBD47

Accessibility & contrast

On white

5.18
#786E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#786E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E21
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E21#FFFFFF#000000##FFFFFF
##786E211.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B16
Deuteranopia (green-blind)
#7B6F26
Tritanopia (blue-blind)
#81665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e21;
/* rgb */ color: rgb(120, 110, 33);
/* oklch */ color: oklch(53.2% 0.096 101.8);
Tailwind
colors: {
  custom: {
    50: '#a29761',
    500: '#786e21',
    950: '#000000',
  },
}
SCSS
$custom: #786e21;
$custom-light: #a29761;
$custom-dark: #000000;
JSON
{
  "hex": "#786e21",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 33
  },
  "hsl": {
    "h": 53.103,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.53239,
    "c": 0.09637,
    "h": 101.8
  },
  "luminance": 0.15255
}

Semantic roles & 50–950 ramp

primary
#786E21
secondary
#4A55AB
accent
#59E048
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786E21

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

Preview Lab → · Contrast checker → · Palette generator →

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