#786A24#786A24

#786A24 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.090 H 97.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#786A24
RGBrgb(120, 106, 36)
HSLhsl(50, 54%, 31%)
HSVhsv(50, 70%, 47%)
CMYKcmyk(0%, 11.7%, 70%, 52.9%)
CIE-LABlab(44.84, -3.20, 39.79)
CIE-LCHlch(44.84, 39.91, 94.60°)
OKLaboklab(52.34% -0.0123 0.0896)
OKLCHoklch(52.34% 0.09 97.8)
XYZxyz(13.2188, 14.4291, 3.7575)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786A24 #243278
analogous
#784024 #786A24 #5C7824
triadic
#786A24 #24786A #6A2478
tetradic
#786A24 #247840 #243278 #78245C
square
#786A24 #247840 #243278 #78245C
split-complementary
#786A24 #245C78 #402478
monochromatic
#1A1708 #494016 #786A24 #A79432 #CAB54D

Accessibility & contrast

On white

5.40
#786A24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#786A24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786A24
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786A24#FFFFFF#000000##FFFFFF
##786A241.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75671B
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#82625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #786a24;
/* rgb */ color: rgb(120, 106, 36);
/* oklch */ color: oklch(52.3% 0.090 97.8);
Tailwind
colors: {
  custom: {
    50: '#a29463',
    500: '#786a24',
    950: '#000000',
  },
}
SCSS
$custom: #786a24;
$custom-light: #a29463;
$custom-dark: #000000;
JSON
{
  "hex": "#786a24",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 36
  },
  "hsl": {
    "h": 50,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52343,
    "c": 0.09047,
    "h": 97.8
  },
  "luminance": 0.14429
}

Semantic roles & 50–950 ramp

primary
#786A24
secondary
#4D5DAB
accent
#63DD4B
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #786A24

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

Preview Lab → · Contrast checker → · Palette generator →

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