#505B15#505B15

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

Color values

HEX#505B15
RGBrgb(80, 91, 21)
HSLhsl(69, 63%, 22%)
HSVhsv(69, 77%, 36%)
CMYKcmyk(12.1%, 0%, 76.9%, 64.3%)
CIE-LABlab(36.45, -14.65, 36.66)
CIE-LCHlch(36.45, 39.48, 111.78°)
OKLaboklab(44.71% -0.0437 0.0816)
OKLCHoklch(44.71% 0.093 118.1)
XYZxyz(7.1849, 9.2419, 2.1147)
Luminance0.0924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505B15 #20155B
analogous
#5B4315 #505B15 #2D5B15
triadic
#505B15 #15505B #5B1550
tetradic
#505B15 #155B43 #20155B #5B152D
square
#505B15 #155B43 #20155B #5B152D
split-complementary
#505B15 #152D5B #43155B
monochromatic
#161906 #24290A #505B15 #7C8D20 #A7BE2C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505B15#FFFFFF#000000##FFFFFF
##505B151.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)
#615608
Deuteranopia (green-blind)
#60561B
Tritanopia (blue-blind)
#55564D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #505b15;
/* rgb */ color: rgb(80, 91, 21);
/* oklch */ color: oklch(44.7% 0.093 118.1);
Tailwind
colors: {
  custom: {
    50: '#838958',
    500: '#505b15',
    950: '#000000',
  },
}
SCSS
$custom: #505b15;
$custom-light: #838958;
$custom-dark: #000000;
JSON
{
  "hex": "#505b15",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 21
  },
  "hsl": {
    "h": 69.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.44711,
    "c": 0.09256,
    "h": 118.1
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#505B15
secondary
#473992
accent
#42E65C
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505B15

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

Preview Lab → · Contrast checker → · Palette generator →

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