#505B18#505B18

#505B18 is a dark, moderate yellow. Relative luminance 0.093; OKLCH L 44.7% C 0.090 H 118.3°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#505B18
RGBrgb(80, 91, 24)
HSLhsl(70, 58%, 23%)
HSVhsv(70, 74%, 36%)
CMYKcmyk(12.1%, 0%, 73.6%, 64.3%)
CIE-LABlab(36.47, -14.45, 35.42)
CIE-LCHlch(36.47, 38.25, 112.20°)
OKLaboklab(44.74% -0.0428 0.0795)
OKLCHoklch(44.74% 0.09 118.3)
XYZxyz(7.2144, 9.2537, 2.2701)
Luminance0.0925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505B18 #23185B
analogous
#5B4518 #505B18 #2E5B18
triadic
#505B18 #18505B #5B1850
tetradic
#505B18 #185B45 #23185B #5B182E
square
#505B18 #185B45 #23185B #5B182E
split-complementary
#505B18 #182E5B #45185B
monochromatic
#151806 #252B0B #505B18 #7B8B25 #A5BC32

Accessibility & contrast

On white

7.37
#505B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#505B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505B18
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505B18#FFFFFF#000000##FFFFFF
##505B181.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61560E
Deuteranopia (green-blind)
#60561D
Tritanopia (blue-blind)
#55564E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #505b18;
/* rgb */ color: rgb(80, 91, 24);
/* oklch */ color: oklch(44.7% 0.090 118.3);
Tailwind
colors: {
  custom: {
    50: '#838959',
    500: '#505b18',
    950: '#000000',
  },
}
SCSS
$custom: #505b18;
$custom-light: #838959;
$custom-dark: #000000;
JSON
{
  "hex": "#505b18",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 69.851,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44736,
    "c": 0.09033,
    "h": 118.3
  },
  "luminance": 0.09254
}

Semantic roles & 50–950 ramp

primary
#505B18
secondary
#4B3D92
accent
#46E160
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #505B18

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

Preview Lab → · Contrast checker → · Palette generator →

#505B18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva