#786F19#786F19

#786F19 is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.4% C 0.103 H 103.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786F19
RGBrgb(120, 111, 25)
HSLhsl(54, 66%, 28%)
HSVhsv(54, 79%, 47%)
CMYKcmyk(0%, 7.5%, 79.2%, 52.9%)
CIE-LABlab(46.22, -6.64, 45.68)
CIE-LCHlch(46.22, 46.16, 98.27°)
OKLaboklab(53.41% -0.0233 0.0999)
OKLCHoklch(53.41% 0.103 103.1)
XYZxyz(13.6063, 15.4327, 3.1816)
Luminance0.1543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786F19 #192278
analogous
#783F19 #786F19 #517819
triadic
#786F19 #19786F #6F1978
tetradic
#786F19 #19783F #192278 #781951
square
#786F19 #19783F #192278 #781951
split-complementary
#786F19 #195178 #3F1978
monochromatic
#191705 #45400E #786F19 #AB9E24 #D5C636

Accessibility & contrast

On white

5.14
#786F19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #786F19
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786F19#FFFFFF#000000##FFFFFF
##786F191.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B06
Deuteranopia (green-blind)
#7D6F1F
Tritanopia (blue-blind)
#82675F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #786f19;
/* rgb */ color: rgb(120, 111, 25);
/* oklch */ color: oklch(53.4% 0.103 103.1);
Tailwind
colors: {
  custom: {
    50: '#a2985d',
    500: '#786f19',
    950: '#000000',
  },
}
SCSS
$custom: #786f19;
$custom-light: #a2985d;
$custom-dark: #000000;
JSON
{
  "hex": "#786f19",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 25
  },
  "hsl": {
    "h": 54.316,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53412,
    "c": 0.10262,
    "h": 103.1
  },
  "luminance": 0.15432
}

Semantic roles & 50–950 ramp

primary
#786F19
secondary
#404AAD
accent
#4FE83F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #786F19

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

Preview Lab → · Contrast checker → · Palette generator →

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