#786E23#786E23

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

Color values

HEX#786E23
RGBrgb(120, 110, 35)
HSLhsl(53, 55%, 30%)
HSVhsv(53, 71%, 47%)
CMYKcmyk(0%, 8.3%, 70.8%, 52.9%)
CIE-LABlab(46.00, -5.55, 41.43)
CIE-LCHlch(46.00, 41.80, 97.63°)
OKLaboklab(53.26% -0.0191 0.0929)
OKLCHoklch(53.26% 0.095 101.6)
XYZxyz(13.6256, 15.2669, 3.8189)
Luminance0.1527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E23 #232D78
analogous
#784323 #786E23 #577823
triadic
#786E23 #23786E #6E2378
tetradic
#786E23 #237843 #232D78 #782357
square
#786E23 #237843 #232D78 #782357
split-complementary
#786E23 #235778 #432378
monochromatic
#191707 #494315 #786E23 #A79931 #CABB4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #786e23;
/* rgb */ color: rgb(120, 110, 35);
/* oklch */ color: oklch(53.3% 0.095 101.6);
Tailwind
colors: {
  custom: {
    50: '#a29763',
    500: '#786e23',
    950: '#000000',
  },
}
SCSS
$custom: #786e23;
$custom-light: #a29763;
$custom-dark: #000000;
JSON
{
  "hex": "#786e23",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 35
  },
  "hsl": {
    "h": 52.941,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53257,
    "c": 0.09487,
    "h": 101.6
  },
  "luminance": 0.15266
}

Semantic roles & 50–950 ramp

primary
#786E23
secondary
#4C57AB
accent
#5BDE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786E23

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

Preview Lab → · Contrast checker → · Palette generator →

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