#786928#786928

#786928 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.2% C 0.086 H 96.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#786928
RGBrgb(120, 105, 40)
HSLhsl(49, 50%, 31%)
HSVhsv(49, 67%, 47%)
CMYKcmyk(0%, 12.5%, 66.7%, 52.9%)
CIE-LABlab(44.59, -2.36, 37.63)
CIE-LCHlch(44.59, 37.70, 93.58°)
OKLaboklab(52.15% -0.0094 0.0858)
OKLCHoklch(52.15% 0.086 96.2)
XYZxyz(13.1809, 14.2501, 4.0633)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786928 #283778
analogous
#784128 #786928 #5F7828
triadic
#786928 #287869 #692878
tetradic
#786928 #287841 #283778 #78285F
square
#786928 #287841 #283778 #78285F
split-complementary
#786928 #285F78 #412878
monochromatic
#1C1909 #4A4119 #786928 #A69137 #C6B154

Accessibility & contrast

On white

5.45
#786928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#786928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786928
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786928#FFFFFF#000000##FFFFFF
##7869281.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736720
Deuteranopia (green-blind)
#776C2B
Tritanopia (blue-blind)
#81615B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #786928;
/* rgb */ color: rgb(120, 105, 40);
/* oklch */ color: oklch(52.2% 0.086 96.2);
Tailwind
colors: {
  custom: {
    50: '#a29365',
    500: '#786928',
    950: '#000000',
  },
}
SCSS
$custom: #786928;
$custom-light: #a29365;
$custom-dark: #000000;
JSON
{
  "hex": "#786928",
  "rgb": {
    "r": 120,
    "g": 105,
    "b": 40
  },
  "hsl": {
    "h": 48.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52155,
    "c": 0.08626,
    "h": 96.2
  },
  "luminance": 0.14249
}

Semantic roles & 50–950 ramp

primary
#786928
secondary
#5262AA
accent
#68DA4E
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #786928

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

Preview Lab → · Contrast checker → · Palette generator →

#786928 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva