#786018#786018

#786018 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 50.0% C 0.092 H 89.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#786018
RGBrgb(120, 96, 24)
HSLhsl(45, 67%, 28%)
HSVhsv(45, 80%, 47%)
CMYKcmyk(0%, 20%, 80%, 52.9%)
CIE-LABlab(41.88, 1.99, 42.02)
CIE-LCHlch(41.88, 42.07, 87.30°)
OKLaboklab(49.98% 0.0011 0.0919)
OKLCHoklch(49.98% 0.092 89.3)
XYZxyz(12.0942, 12.4255, 2.6253)
Luminance0.1242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786018 #183078
analogous
#783018 #786018 #607818
triadic
#786018 #187860 #601878
tetradic
#786018 #187830 #183078 #781860
square
#786018 #187830 #183078 #781860
split-complementary
#786018 #186078 #301878
monochromatic
#1A1405 #45370E #786018 #AB8922 #D6AE34

Accessibility & contrast

On white

6.03
#786018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#786018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786018
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786018#FFFFFF#000000##FFFFFF
##7860181.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F0B
Deuteranopia (green-blind)
#72661C
Tritanopia (blue-blind)
#835752
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #786018;
/* rgb */ color: rgb(120, 96, 24);
/* oklch */ color: oklch(50.0% 0.092 89.3);
Tailwind
colors: {
  custom: {
    50: '#a38c5b',
    500: '#786018',
    950: '#000000',
  },
}
SCSS
$custom: #786018;
$custom-light: #a38c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#786018",
  "rgb": {
    "r": 120,
    "g": 96,
    "b": 24
  },
  "hsl": {
    "h": 45,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.49977,
    "c": 0.09193,
    "h": 89.3
  },
  "luminance": 0.12425
}

Semantic roles & 50–950 ramp

primary
#786018
secondary
#3F5AAD
accent
#69EA3E
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #786018

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

Preview Lab → · Contrast checker → · Palette generator →

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