#786E24#786E24

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

Color values

HEX#786E24
RGBrgb(120, 110, 36)
HSLhsl(53, 54%, 31%)
HSVhsv(53, 70%, 47%)
CMYKcmyk(0%, 8.3%, 70%, 52.9%)
CIE-LABlab(46.01, -5.49, 40.99)
CIE-LCHlch(46.01, 41.35, 97.62°)
OKLaboklab(53.27% -0.0188 0.0922)
OKLCHoklch(53.27% 0.094 101.5)
XYZxyz(13.6407, 15.2729, 3.8982)
Luminance0.1527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E24 #242E78
analogous
#784424 #786E24 #587824
triadic
#786E24 #24786E #6E2478
tetradic
#786E24 #247844 #242E78 #782458
square
#786E24 #247844 #242E78 #782458
split-complementary
#786E24 #245878 #442478
monochromatic
#1A1808 #494316 #786E24 #A79932 #CABB4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786E24#FFFFFF#000000##FFFFFF
##786E241.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)
#786B1A
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#81665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e24;
/* rgb */ color: rgb(120, 110, 36);
/* oklch */ color: oklch(53.3% 0.094 101.5);
Tailwind
colors: {
  custom: {
    50: '#a29763',
    500: '#786e24',
    950: '#000000',
  },
}
SCSS
$custom: #786e24;
$custom-light: #a29763;
$custom-dark: #000000;
JSON
{
  "hex": "#786e24",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 36
  },
  "hsl": {
    "h": 52.857,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53266,
    "c": 0.09408,
    "h": 101.5
  },
  "luminance": 0.15272
}

Semantic roles & 50–950 ramp

primary
#786E24
secondary
#4D58AB
accent
#5CDD4B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786E24

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

Preview Lab → · Contrast checker → · Palette generator →

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