#786918#786918

#786918 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.0% C 0.098 H 98.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#786918
RGBrgb(120, 105, 24)
HSLhsl(51, 67%, 28%)
HSVhsv(51, 80%, 47%)
CMYKcmyk(0%, 12.5%, 80%, 52.9%)
CIE-LABlab(44.47, -3.26, 44.42)
CIE-LCHlch(44.47, 44.54, 94.19°)
OKLaboklab(52.02% -0.0139 0.0971)
OKLCHoklch(52.02% 0.098 98.1)
XYZxyz(12.9628, 14.1628, 2.9149)
Luminance0.1416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786918 #182778
analogous
#783918 #786918 #577818
triadic
#786918 #187869 #691878
tetradic
#786918 #187839 #182778 #781857
square
#786918 #187839 #182778 #781857
split-complementary
#786918 #185778 #391878
monochromatic
#1A1605 #453C0E #786918 #AB9622 #D6BD34

Accessibility & contrast

On white

5.48
#786918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#786918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786918
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786918#FFFFFF#000000##FFFFFF
##7869181.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746607
Deuteranopia (green-blind)
#786B1E
Tritanopia (blue-blind)
#82605A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #786918;
/* rgb */ color: rgb(120, 105, 24);
/* oklch */ color: oklch(52.0% 0.098 98.1);
Tailwind
colors: {
  custom: {
    50: '#a2935c',
    500: '#786918',
    950: '#000000',
  },
}
SCSS
$custom: #786918;
$custom-light: #a2935c;
$custom-dark: #000000;
JSON
{
  "hex": "#786918",
  "rgb": {
    "r": 120,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 50.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52017,
    "c": 0.09804,
    "h": 98.1
  },
  "luminance": 0.14162
}

Semantic roles & 50–950 ramp

primary
#786918
secondary
#3F50AD
accent
#59EA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#0F0D04
muted
#7F7E79

Preview Lab

Preview with #786918

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

Preview Lab → · Contrast checker → · Palette generator →

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