#786F21#786F21

#786F21 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.097 H 102.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#786F21
RGBrgb(120, 111, 33)
HSLhsl(54, 57%, 30%)
HSVhsv(54, 73%, 47%)
CMYKcmyk(0%, 7.5%, 72.5%, 52.9%)
CIE-LABlab(46.27, -6.23, 42.57)
CIE-LCHlch(46.27, 43.02, 98.33°)
OKLaboklab(53.47% -0.0213 0.095)
OKLCHoklch(53.47% 0.097 102.6)
XYZxyz(13.7053, 15.4723, 3.7031)
Luminance0.1547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F21 #212A78
analogous
#784321 #786F21 #567821
triadic
#786F21 #21786F #6F2178
tetradic
#786F21 #217843 #212A78 #782156
square
#786F21 #217843 #212A78 #782156
split-complementary
#786F21 #215678 #432178
monochromatic
#181607 #484314 #786F21 #A89B2E #CCBF47

Accessibility & contrast

On white

5.13
#786F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#786F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F21
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F21#FFFFFF#000000##FFFFFF
##786F211.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B15
Deuteranopia (green-blind)
#7C6F26
Tritanopia (blue-blind)
#81675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f21;
/* rgb */ color: rgb(120, 111, 33);
/* oklch */ color: oklch(53.5% 0.097 102.6);
Tailwind
colors: {
  custom: {
    50: '#a29862',
    500: '#786f21',
    950: '#000000',
  },
}
SCSS
$custom: #786f21;
$custom-light: #a29862;
$custom-dark: #000000;
JSON
{
  "hex": "#786f21",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 33
  },
  "hsl": {
    "h": 53.793,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.53472,
    "c": 0.09732,
    "h": 102.6
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#786F21
secondary
#4A54AB
accent
#57E048
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F21

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

Preview Lab → · Contrast checker → · Palette generator →

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