#505018#505018

#505018 is a dark, moderate yellow. Relative luminance 0.075; OKLCH L 41.9% C 0.076 H 109.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#505018
RGBrgb(80, 80, 24)
HSLhsl(60, 54%, 20%)
HSVhsv(60, 70%, 31%)
CMYKcmyk(0%, 0%, 70%, 68.6%)
CIE-LABlab(32.94, -8.14, 31.79)
CIE-LCHlch(32.94, 32.82, 104.37°)
OKLaboklab(41.91% -0.0251 0.0719)
OKLCHoklch(41.91% 0.076 109.3)
XYZxyz(6.3420, 7.5089, 1.9793)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505018 #181850
analogous
#503418 #505018 #345018
triadic
#505018 #185050 #501850
tetradic
#505018 #185034 #181850 #501834
square
#505018 #185034 #181850 #501834
split-complementary
#505018 #183450 #341850
monochromatic
#181807 #21210A #505018 #7F7F26 #AEAE34

Accessibility & contrast

On white

8.39
#505018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#505018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505018
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505018#FFFFFF#000000##FFFFFF
##5050181.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C11
Deuteranopia (green-blind)
#574E1C
Tritanopia (blue-blind)
#564B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #505018;
/* rgb */ color: rgb(80, 80, 24);
/* oklch */ color: oklch(41.9% 0.076 109.3);
Tailwind
colors: {
  custom: {
    50: '#838058',
    500: '#505018',
    950: '#000000',
  },
}
SCSS
$custom: #505018;
$custom-light: #838058;
$custom-dark: #000000;
JSON
{
  "hex": "#505018",
  "rgb": {
    "r": 80,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41908,
    "c": 0.07618,
    "h": 109.3
  },
  "luminance": 0.07509
}

Semantic roles & 50–950 ramp

primary
#505018
secondary
#3D3D87
accent
#4BDD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505018

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

Preview Lab → · Contrast checker → · Palette generator →

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