#6231A4#6231A4

#6231A4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.175 H 298.4°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6231A4
RGBrgb(98, 49, 164)
HSLhsl(266, 54%, 42%)
HSVhsv(266, 70%, 64%)
CMYKcmyk(40.2%, 70.1%, 0%, 35.7%)
CIE-LABlab(32.86, 45.91, -53.90)
CIE-LCHlch(32.86, 70.80, 310.42°)
OKLaboklab(44.15% 0.0832 -0.1538)
OKLCHoklch(44.15% 0.175 298.4)
XYZxyz(12.8345, 7.4734, 35.8811)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231A4 #73A431
analogous
#313AA4 #6231A4 #9C31A4
triadic
#6231A4 #A46231 #31A462
tetradic
#6231A4 #A4313A #73A431 #31A49C
square
#6231A4 #A4313A #73A431 #31A49C
split-complementary
#6231A4 #A49C31 #3AA431
monochromatic
#2A1546 #462375 #6231A4 #8049C9 #A179D7

Accessibility & contrast

On white

8.42
#6231A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6231A4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231A4#FFFFFF#000000##FFFFFF
##6231A41.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#524D67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6231a4;
/* rgb */ color: rgb(98, 49, 164);
/* oklch */ color: oklch(44.1% 0.175 298.4);
Tailwind
colors: {
  custom: {
    50: '#946dc0',
    500: '#6231a4',
    950: '#000000',
  },
}
SCSS
$custom: #6231a4;
$custom-light: #946dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6231a4",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 265.565,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44148,
    "c": 0.17491,
    "h": 298.4
  },
  "luminance": 0.07474
}

Semantic roles & 50–950 ramp

primary
#6231A4
secondary
#9EBF72
accent
#DD4A9F
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6231A4

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

Preview Lab → · Contrast checker → · Palette generator →

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