#6231A3#6231A3

#6231A3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.174 H 298.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#6231A3
RGBrgb(98, 49, 163)
HSLhsl(266, 54%, 42%)
HSVhsv(266, 70%, 64%)
CMYKcmyk(39.9%, 69.9%, 0%, 36.1%)
CIE-LABlab(32.78, 45.65, -53.42)
CIE-LCHlch(32.78, 70.27, 310.51°)
OKLaboklab(44.07% 0.0834 -0.1524)
OKLCHoklch(44.07% 0.174 298.7)
XYZxyz(12.7445, 7.4375, 35.4074)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231A3 #72A331
analogous
#3139A3 #6231A3 #9B31A3
triadic
#6231A3 #A36231 #31A362
tetradic
#6231A3 #A33139 #72A331 #31A39B
square
#6231A3 #A33139 #72A331 #31A39B
split-complementary
#6231A3 #A39B31 #39A331
monochromatic
#291545 #462374 #6231A3 #8049C8 #A178D6

Accessibility & contrast

On white

8.44
#6231A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6231A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231A3
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231A3#FFFFFF#000000##FFFFFF
##6231A31.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6231a3;
/* rgb */ color: rgb(98, 49, 163);
/* oklch */ color: oklch(44.1% 0.174 298.7);
Tailwind
colors: {
  custom: {
    50: '#946dbf',
    500: '#6231a3',
    950: '#000000',
  },
}
SCSS
$custom: #6231a3;
$custom-light: #946dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#6231a3",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 265.789,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44068,
    "c": 0.17376,
    "h": 298.7
  },
  "luminance": 0.07438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6231A3

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

Preview Lab → · Contrast checker → · Palette generator →

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