#6231A2#6231A2

#6231A2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.173 H 298.9°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#6231A2
RGBrgb(98, 49, 162)
HSLhsl(266, 54%, 41%)
HSVhsv(266, 70%, 64%)
CMYKcmyk(39.5%, 69.8%, 0%, 36.5%)
CIE-LABlab(32.70, 45.38, -52.95)
CIE-LCHlch(32.70, 69.74, 310.60°)
OKLaboklab(43.99% 0.0835 -0.151)
OKLCHoklch(43.99% 0.173 298.9)
XYZxyz(12.6553, 7.4018, 34.9374)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231A2 #71A231
analogous
#3138A2 #6231A2 #9B31A2
triadic
#6231A2 #A26231 #31A262
tetradic
#6231A2 #A23138 #71A231 #31A29B
square
#6231A2 #A23138 #71A231 #31A29B
split-complementary
#6231A2 #A29B31 #38A231
monochromatic
#291544 #462373 #6231A2 #8048C8 #A077D6

Accessibility & contrast

On white

8.47
#6231A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6231A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231A2
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231A2#FFFFFF#000000##FFFFFF
##6231A21.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#534C66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6231a2;
/* rgb */ color: rgb(98, 49, 162);
/* oklch */ color: oklch(44.0% 0.173 298.9);
Tailwind
colors: {
  custom: {
    50: '#946dbe',
    500: '#6231a2',
    950: '#000000',
  },
}
SCSS
$custom: #6231a2;
$custom-light: #946dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6231a2",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 266.018,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43987,
    "c": 0.17261,
    "h": 298.9
  },
  "luminance": 0.07402
}

Semantic roles & 50–950 ramp

primary
#6231A2
secondary
#9DBE71
accent
#DD4B9E
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6231A2

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

Preview Lab → · Contrast checker → · Palette generator →

#6231A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva