#786B25#786B25

#786B25 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.091 H 98.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#786B25
RGBrgb(120, 107, 37)
HSLhsl(51, 53%, 31%)
HSVhsv(51, 69%, 47%)
CMYKcmyk(0%, 10.8%, 69.2%, 52.9%)
CIE-LABlab(45.14, -3.71, 39.64)
CIE-LCHlch(45.14, 39.81, 95.35°)
OKLaboklab(52.58% -0.0136 0.0895)
OKLCHoklch(52.58% 0.091 98.7)
XYZxyz(13.3379, 14.6427, 3.8737)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786B25 #253278
analogous
#784125 #786B25 #5B7825
triadic
#786B25 #25786B #6B2578
tetradic
#786B25 #257841 #253278 #78255B
square
#786B25 #257841 #253278 #78255B
split-complementary
#786B25 #255B78 #412578
monochromatic
#1A1808 #494117 #786B25 #A79533 #C9B64F

Accessibility & contrast

On white

5.35
#786B25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#786B25 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786B25
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786B25#FFFFFF#000000##FFFFFF
##786B251.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76681C
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#81635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #786b25;
/* rgb */ color: rgb(120, 107, 37);
/* oklch */ color: oklch(52.6% 0.091 98.7);
Tailwind
colors: {
  custom: {
    50: '#a29563',
    500: '#786b25',
    950: '#000000',
  },
}
SCSS
$custom: #786b25;
$custom-light: #a29563;
$custom-dark: #000000;
JSON
{
  "hex": "#786b25",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 37
  },
  "hsl": {
    "h": 50.602,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52582,
    "c": 0.09053,
    "h": 98.7
  },
  "luminance": 0.14642
}

Semantic roles & 50–950 ramp

primary
#786B25
secondary
#4E5DAA
accent
#62DC4C
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786B25

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

Preview Lab → · Contrast checker → · Palette generator →

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