#787818#787818

#787818 is a mid, moderate yellow. Relative luminance 0.175; OKLCH L 55.5% C 0.112 H 109.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#787818
RGBrgb(120, 120, 24)
HSLhsl(60, 67%, 28%)
HSVhsv(60, 80%, 47%)
CMYKcmyk(0%, 0%, 80%, 52.9%)
CIE-LABlab(48.87, -11.69, 48.44)
CIE-LCHlch(48.87, 49.83, 103.56°)
OKLaboklab(55.53% -0.0375 0.1056)
OKLCHoklch(55.53% 0.112 109.6)
XYZxyz(14.6276, 17.4924, 3.4698)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787818 #181878
analogous
#784818 #787818 #487818
triadic
#787818 #187878 #781878
tetradic
#787818 #187848 #181878 #781848
square
#787818 #187848 #181878 #781848
split-complementary
#787818 #184878 #481878
monochromatic
#1A1A05 #45450E #787818 #ABAB22 #D6D634

Accessibility & contrast

On white

4.67
#787818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#787818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #787818
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787818#FFFFFF#000000##FFFFFF
##7878181.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#837520
Tritanopia (blue-blind)
#817066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #787818;
/* rgb */ color: rgb(120, 120, 24);
/* oklch */ color: oklch(55.5% 0.112 109.6);
Tailwind
colors: {
  custom: {
    50: '#a29e5e',
    500: '#787818',
    950: '#000000',
  },
}
SCSS
$custom: #787818;
$custom-light: #a29e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#787818",
  "rgb": {
    "r": 120,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55526,
    "c": 0.11211,
    "h": 109.6
  },
  "luminance": 0.17492
}

Semantic roles & 50–950 ramp

primary
#787818
secondary
#3F3FAD
accent
#3EEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #787818

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

Preview Lab → · Contrast checker → · Palette generator →

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