#786A21#786A21

#786A21 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.093 H 98.2°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#786A21
RGBrgb(120, 106, 33)
HSLhsl(50, 57%, 30%)
HSVhsv(50, 73%, 47%)
CMYKcmyk(0%, 11.7%, 72.5%, 52.9%)
CIE-LABlab(44.82, -3.38, 41.11)
CIE-LCHlch(44.82, 41.25, 94.70°)
OKLaboklab(52.32% -0.0132 0.0919)
OKLCHoklch(52.32% 0.093 98.2)
XYZxyz(13.1749, 14.4116, 3.5263)
Luminance0.1441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A21 #212F78
analogous
#783F21 #786A21 #5A7821
triadic
#786A21 #21786A #6A2178
tetradic
#786A21 #21783F #212F78 #78215A
square
#786A21 #21783F #212F78 #78215A
split-complementary
#786A21 #215A78 #3F2178
monochromatic
#181507 #484014 #786A21 #A8942E #CCB747

Accessibility & contrast

On white

5.41
#786A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#786A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A21
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A21#FFFFFF#000000##FFFFFF
##786A211.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756717
Deuteranopia (green-blind)
#796C25
Tritanopia (blue-blind)
#82625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a21;
/* rgb */ color: rgb(120, 106, 33);
/* oklch */ color: oklch(52.3% 0.093 98.2);
Tailwind
colors: {
  custom: {
    50: '#a29461',
    500: '#786a21',
    950: '#000000',
  },
}
SCSS
$custom: #786a21;
$custom-light: #a29461;
$custom-dark: #000000;
JSON
{
  "hex": "#786a21",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 33
  },
  "hsl": {
    "h": 50.345,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.52316,
    "c": 0.09281,
    "h": 98.2
  },
  "luminance": 0.14411
}

Semantic roles & 50–950 ramp

primary
#786A21
secondary
#4A59AB
accent
#60E048
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786A21

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

Preview Lab → · Contrast checker → · Palette generator →

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