#786F28#786F28

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

Color values

HEX#786F28
RGBrgb(120, 111, 40)
HSLhsl(53, 50%, 31%)
HSVhsv(53, 67%, 47%)
CMYKcmyk(0%, 7.5%, 66.7%, 52.9%)
CIE-LABlab(46.33, -5.79, 39.50)
CIE-LCHlch(46.33, 39.92, 98.34°)
OKLaboklab(53.54% -0.0192 0.0897)
OKLCHoklch(53.54% 0.092 102.1)
XYZxyz(13.8137, 15.5157, 4.2743)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F28 #283178
analogous
#784728 #786F28 #597828
triadic
#786F28 #28786F #6F2878
tetradic
#786F28 #287847 #283178 #782859
square
#786F28 #287847 #283178 #782859
split-complementary
#786F28 #285978 #472878
monochromatic
#1C1A09 #4A4519 #786F28 #A69937 #C6B954

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786F28#FFFFFF#000000##FFFFFF
##786F281.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)
#796C1F
Deuteranopia (green-blind)
#7C702C
Tritanopia (blue-blind)
#816760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f28;
/* rgb */ color: rgb(120, 111, 40);
/* oklch */ color: oklch(53.5% 0.092 102.1);
Tailwind
colors: {
  custom: {
    50: '#a19866',
    500: '#786f28',
    950: '#000000',
  },
}
SCSS
$custom: #786f28;
$custom-light: #a19866;
$custom-dark: #000000;
JSON
{
  "hex": "#786f28",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 40
  },
  "hsl": {
    "h": 53.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53537,
    "c": 0.09174,
    "h": 102.1
  },
  "luminance": 0.15515
}

Semantic roles & 50–950 ramp

primary
#786F28
secondary
#525CAA
accent
#5EDA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786F28

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

Preview Lab → · Contrast checker → · Palette generator →

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