#787018#787018

#787018 is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.6% C 0.104 H 104.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#787018
RGBrgb(120, 112, 24)
HSLhsl(55, 67%, 28%)
HSVhsv(55, 80%, 47%)
CMYKcmyk(0%, 6.7%, 80%, 52.9%)
CIE-LABlab(46.51, -7.24, 46.30)
CIE-LCHlch(46.51, 46.86, 98.89°)
OKLaboklab(53.64% -0.0251 0.1011)
OKLCHoklch(53.64% 0.104 104)
XYZxyz(13.7054, 15.6479, 3.1624)
Luminance0.1565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787018 #182078
analogous
#784018 #787018 #507818
triadic
#787018 #187870 #701878
tetradic
#787018 #187840 #182078 #781850
square
#787018 #187840 #182078 #781850
split-complementary
#787018 #185078 #401878
monochromatic
#1A1805 #45400E #787018 #ABA022 #D6C934

Accessibility & contrast

On white

5.09
#787018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#787018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #787018
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787018#FFFFFF#000000##FFFFFF
##7870181.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C04
Deuteranopia (green-blind)
#7D701F
Tritanopia (blue-blind)
#82685F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #787018;
/* rgb */ color: rgb(120, 112, 24);
/* oklch */ color: oklch(53.6% 0.104 104.0);
Tailwind
colors: {
  custom: {
    50: '#a2985d',
    500: '#787018',
    950: '#000000',
  },
}
SCSS
$custom: #787018;
$custom-light: #a2985d;
$custom-dark: #000000;
JSON
{
  "hex": "#787018",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 55,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5364,
    "c": 0.10412,
    "h": 104
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#787018
secondary
#3F48AD
accent
#4CEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #787018

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

Preview Lab → · Contrast checker → · Palette generator →

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