#504262#504262

#504262 is a dark, muted violet. Relative luminance 0.065; OKLCH L 40.7% C 0.055 H 304.1°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#504262
RGBrgb(80, 66, 98)
HSLhsl(266, 20%, 32%)
HSVhsv(266, 33%, 38%)
CMYKcmyk(18.4%, 32.7%, 0%, 61.6%)
CIE-LABlab(30.60, 13.21, -16.63)
CIE-LCHlch(30.60, 21.24, 308.48°)
OKLaboklab(40.69% 0.031 -0.0457)
OKLCHoklch(40.69% 0.055 304.1)
XYZxyz(7.4606, 6.4838, 12.4114)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504262 #546242
analogous
#424462 #504262 #604262
triadic
#504262 #625042 #426250
tetradic
#504262 #624244 #546242 #426260
square
#504262 #624244 #546242 #426260
split-complementary
#504262 #626042 #446242
monochromatic
#141119 #32293D #504262 #6E5B87 #8C79A5

Accessibility & contrast

On white

9.14
#504262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#504262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504262
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504262#FFFFFF#000000##FFFFFF
##5042621.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C4863
Deuteranopia (green-blind)
#3E4861
Tritanopia (blue-blind)
#4D474D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #504262;
/* rgb */ color: rgb(80, 66, 98);
/* oklch */ color: oklch(40.7% 0.055 304.1);
Tailwind
colors: {
  custom: {
    50: '#81768e',
    500: '#504262',
    950: '#000000',
  },
}
SCSS
$custom: #504262;
$custom-light: #81768e;
$custom-dark: #000000;
JSON
{
  "hex": "#504262",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 98
  },
  "hsl": {
    "h": 266.25,
    "s": 19.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40691,
    "c": 0.05522,
    "h": 304.1
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#504262
secondary
#82916F
accent
#BC6C99
background
#F7F7F8
surface
#EEEDF0
border
#C9C8CB
text
#0A080C
muted
#7C7B7D

Preview Lab

Preview with #504262

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

Preview Lab → · Contrast checker → · Palette generator →

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