#786E19#786E19

#786E19 is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.102 H 102.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#786E19
RGBrgb(120, 110, 25)
HSLhsl(54, 66%, 28%)
HSVhsv(54, 79%, 47%)
CMYKcmyk(0%, 8.3%, 79.2%, 52.9%)
CIE-LABlab(45.93, -6.07, 45.41)
CIE-LCHlch(45.93, 45.81, 97.61°)
OKLaboklab(53.18% -0.0217 0.0994)
OKLCHoklch(53.18% 0.102 102.3)
XYZxyz(13.4978, 15.2157, 3.1455)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786E19 #192378
analogous
#783E19 #786E19 #527819
triadic
#786E19 #19786E #6E1978
tetradic
#786E19 #19783E #192378 #781952
square
#786E19 #19783E #192378 #781952
split-complementary
#786E19 #195278 #3E1978
monochromatic
#191705 #45400E #786E19 #AB9C24 #D5C436

Accessibility & contrast

On white

5.19
#786E19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#786E19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786E19
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786E19#FFFFFF#000000##FFFFFF
##786E191.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A07
Deuteranopia (green-blind)
#7C6F1F
Tritanopia (blue-blind)
#82665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786e19;
/* rgb */ color: rgb(120, 110, 25);
/* oklch */ color: oklch(53.2% 0.102 102.3);
Tailwind
colors: {
  custom: {
    50: '#a2975d',
    500: '#786e19',
    950: '#000000',
  },
}
SCSS
$custom: #786e19;
$custom-light: #a2975d;
$custom-dark: #000000;
JSON
{
  "hex": "#786e19",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 25
  },
  "hsl": {
    "h": 53.684,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5318,
    "c": 0.1017,
    "h": 102.3
  },
  "luminance": 0.15215
}

Semantic roles & 50–950 ramp

primary
#786E19
secondary
#404CAD
accent
#51E83F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786E19

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

Preview Lab → · Contrast checker → · Palette generator →

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