#786F1F#786F1F

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

Color values

HEX#786F1F
RGBrgb(120, 111, 31)
HSLhsl(54, 59%, 30%)
HSVhsv(54, 74%, 47%)
CMYKcmyk(0%, 7.5%, 74.2%, 52.9%)
CIE-LABlab(46.26, -6.34, 43.39)
CIE-LCHlch(46.26, 43.85, 98.32°)
OKLaboklab(53.46% -0.0218 0.0963)
OKLCHoklch(53.46% 0.099 102.8)
XYZxyz(13.6781, 15.4615, 3.5599)
Luminance0.1546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F1F #1F2878
analogous
#78431F #786F1F #54781F
triadic
#786F1F #1F786F #6F1F78
tetradic
#786F1F #1F7843 #1F2878 #781F54
square
#786F1F #1F7843 #1F2878 #781F54
split-complementary
#786F1F #1F5478 #431F78
monochromatic
#181606 #474212 #786F1F #A99C2C #CEC043

Accessibility & contrast

On white

5.13
#786F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#786F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786F1F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F1F#FFFFFF#000000##FFFFFF
##786F1F1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B12
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#81675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #786f1f;
/* rgb */ color: rgb(120, 111, 31);
/* oklch */ color: oklch(53.5% 0.099 102.8);
Tailwind
colors: {
  custom: {
    50: '#a29860',
    500: '#786f1f',
    950: '#000000',
  },
}
SCSS
$custom: #786f1f;
$custom-light: #a29860;
$custom-dark: #000000;
JSON
{
  "hex": "#786f1f",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 53.933,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53455,
    "c": 0.09875,
    "h": 102.8
  },
  "luminance": 0.15461
}

Semantic roles & 50–950 ramp

primary
#786F1F
secondary
#4751AB
accent
#55E246
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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