#786F27#786F27

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

Color values

HEX#786F27
RGBrgb(120, 111, 39)
HSLhsl(53, 51%, 31%)
HSVhsv(53, 68%, 47%)
CMYKcmyk(0%, 7.5%, 67.5%, 52.9%)
CIE-LABlab(46.32, -5.86, 39.95)
CIE-LCHlch(46.32, 40.38, 98.35°)
OKLaboklab(53.53% -0.0195 0.0905)
OKLCHoklch(53.53% 0.093 102.2)
XYZxyz(13.7969, 15.5090, 4.1858)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F27 #273078
analogous
#784627 #786F27 #587827
triadic
#786F27 #27786F #6F2778
tetradic
#786F27 #277846 #273078 #782758
square
#786F27 #277846 #273078 #782758
split-complementary
#786F27 #275878 #462778
monochromatic
#1C1A09 #4A4418 #786F27 #A69A36 #C7BA52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786F27#FFFFFF#000000##FFFFFF
##786F271.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)
#796C1E
Deuteranopia (green-blind)
#7C6F2B
Tritanopia (blue-blind)
#816760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f27;
/* rgb */ color: rgb(120, 111, 39);
/* oklch */ color: oklch(53.5% 0.093 102.2);
Tailwind
colors: {
  custom: {
    50: '#a29865',
    500: '#786f27',
    950: '#000000',
  },
}
SCSS
$custom: #786f27;
$custom-light: #a29865;
$custom-dark: #000000;
JSON
{
  "hex": "#786f27",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 39
  },
  "hsl": {
    "h": 53.333,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53527,
    "c": 0.09259,
    "h": 102.2
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#786F27
secondary
#515BAA
accent
#5DDA4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786F27

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

Preview Lab → · Contrast checker → · Palette generator →

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