#505242#505242

#505242 is a dark, muted yellow. Relative luminance 0.081; OKLCH L 43.2% C 0.026 H 113.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#505242
RGBrgb(80, 82, 66)
HSLhsl(68, 11%, 29%)
HSVhsv(68, 20%, 32%)
CMYKcmyk(2.4%, 0%, 19.5%, 67.8%)
CIE-LABlab(34.26, -4.01, 9.14)
CIE-LCHlch(34.26, 9.99, 113.70°)
OKLaboklab(43.18% -0.0101 0.0235)
OKLCHoklch(43.18% 0.026 113.3)
XYZxyz(7.3088, 8.1335, 6.3381)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505242 #444252
analogous
#524C42 #505242 #485242
triadic
#505242 #425052 #524250
tetradic
#505242 #42524C #444252 #524248
square
#505242 #42524C #444252 #524248
split-complementary
#505242 #424852 #4C4252
monochromatic
#11110E #2F3027 #505242 #71745D #91947A

Accessibility & contrast

On white

8.00
#505242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#505242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505242
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505242#FFFFFF#000000##FFFFFF
##5052421.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#555041
Deuteranopia (green-blind)
#545143
Tritanopia (blue-blind)
#52504E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #505242;
/* rgb */ color: rgb(80, 82, 66);
/* oklch */ color: oklch(43.2% 0.026 113.3);
Tailwind
colors: {
  custom: {
    50: '#818276',
    500: '#505242',
    950: '#000000',
  },
}
SCSS
$custom: #505242;
$custom-light: #818276;
$custom-dark: #000000;
JSON
{
  "hex": "#505242",
  "rgb": {
    "r": 80,
    "g": 82,
    "b": 66
  },
  "hsl": {
    "h": 67.5,
    "s": 10.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.43183,
    "c": 0.02553,
    "h": 113.3
  },
  "luminance": 0.08133
}

Semantic roles & 50–950 ramp

primary
#505242
secondary
#716F81
accent
#74B47C
background
#F7F7F7
surface
#EEEEED
border
#C9C9C8
text
#0A0A08
muted
#7C7C7B

Preview Lab

Preview with #505242

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

Preview Lab → · Contrast checker → · Palette generator →

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