#6231AA#6231AA

#6231AA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.182 H 296.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#6231AA
RGBrgb(98, 49, 170)
HSLhsl(264, 55%, 43%)
HSVhsv(264, 71%, 67%)
CMYKcmyk(42.4%, 71.2%, 0%, 33.3%)
CIE-LABlab(33.34, 47.49, -56.73)
CIE-LCHlch(33.34, 73.98, 309.93°)
OKLaboklab(44.64% 0.0821 -0.1621)
OKLCHoklch(44.64% 0.182 296.9)
XYZxyz(13.3891, 7.6953, 38.8023)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231AA #79AA31
analogous
#313CAA #6231AA #9F31AA
triadic
#6231AA #AA6231 #31AA62
tetradic
#6231AA #AA313C #79AA31 #31AA9F
square
#6231AA #AA313C #79AA31 #31AA9F
split-complementary
#6231AA #AA9F31 #3CAA31
monochromatic
#2B164B #47237A #6231AA #804DCC #A27CD9

Accessibility & contrast

On white

8.27
#6231AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6231AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6231AA#FFFFFF#000000##FFFFFF
##6231AA1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#4F4F6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6231aa;
/* rgb */ color: rgb(98, 49, 170);
/* oklch */ color: oklch(44.6% 0.182 296.9);
Tailwind
colors: {
  custom: {
    50: '#956dc4',
    500: '#6231aa',
    950: '#000000',
  },
}
SCSS
$custom: #6231aa;
$custom-light: #956dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#6231aa",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 264.298,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44639,
    "c": 0.18177,
    "h": 296.9
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#6231AA
secondary
#A3C275
accent
#DF49A2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231AA

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

Preview Lab → · Contrast checker → · Palette generator →

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