#786F24#786F24

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

Color values

HEX#786F24
RGBrgb(120, 111, 36)
HSLhsl(54, 54%, 31%)
HSVhsv(54, 70%, 47%)
CMYKcmyk(0%, 7.5%, 70%, 52.9%)
CIE-LABlab(46.30, -6.05, 41.29)
CIE-LCHlch(46.30, 41.73, 98.34°)
OKLaboklab(53.5% -0.0204 0.0928)
OKLCHoklch(53.5% 0.095 102.4)
XYZxyz(13.7492, 15.4899, 3.9343)
Luminance0.1549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F24 #242D78
analogous
#784524 #786F24 #577824
triadic
#786F24 #24786F #6F2478
tetradic
#786F24 #247845 #242D78 #782457
square
#786F24 #247845 #242D78 #782457
split-complementary
#786F24 #245778 #452478
monochromatic
#1A1808 #494316 #786F24 #A79B32 #CABC4D

Accessibility & contrast

On white

5.12
#786F24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#786F24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F24
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F24#FFFFFF#000000##FFFFFF
##786F241.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B1A
Deuteranopia (green-blind)
#7C6F29
Tritanopia (blue-blind)
#816760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f24;
/* rgb */ color: rgb(120, 111, 36);
/* oklch */ color: oklch(53.5% 0.095 102.4);
Tailwind
colors: {
  custom: {
    50: '#a29863',
    500: '#786f24',
    950: '#000000',
  },
}
SCSS
$custom: #786f24;
$custom-light: #a29863;
$custom-dark: #000000;
JSON
{
  "hex": "#786f24",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 36
  },
  "hsl": {
    "h": 53.571,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53498,
    "c": 0.09503,
    "h": 102.4
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#786F24
secondary
#4D57AB
accent
#5ADD4B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786F24

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

Preview Lab → · Contrast checker → · Palette generator →

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