#505115#505115

#505115 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.1% C 0.080 H 110.3°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#505115
RGBrgb(80, 81, 21)
HSLhsl(61, 59%, 20%)
HSVhsv(61, 74%, 32%)
CMYKcmyk(1.2%, 0%, 74.1%, 68.2%)
CIE-LABlab(33.23, -8.93, 33.48)
CIE-LCHlch(33.23, 34.65, 104.94°)
OKLaboklab(42.13% -0.0277 0.0749)
OKLCHoklch(42.13% 0.08 110.3)
XYZxyz(6.3863, 7.6446, 1.8485)
Luminance0.0764 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505115 #161551
analogous
#513415 #505115 #325115
triadic
#505115 #155051 #511550
tetradic
#505115 #155134 #161551 #511532
square
#505115 #155134 #161551 #511532
split-complementary
#505115 #153251 #341551
monochromatic
#181806 #202008 #505115 #808222 #B0B22E

Accessibility & contrast

On white

8.30
#505115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#505115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505115
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505115#FFFFFF#000000##FFFFFF
##5051151.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0C
Deuteranopia (green-blind)
#584F19
Tritanopia (blue-blind)
#564C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #505115;
/* rgb */ color: rgb(80, 81, 21);
/* oklch */ color: oklch(42.1% 0.080 110.3);
Tailwind
colors: {
  custom: {
    50: '#838157',
    500: '#505115',
    950: '#000000',
  },
}
SCSS
$custom: #505115;
$custom-light: #838157;
$custom-dark: #000000;
JSON
{
  "hex": "#505115",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 61,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.42134,
    "c": 0.07988,
    "h": 110.3
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#505115
secondary
#3A3989
accent
#46E248
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505115

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

Preview Lab → · Contrast checker → · Palette generator →

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