#6231B1#6231B1

#6231B1 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.190 H 295.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#6231B1
RGBrgb(98, 49, 177)
HSLhsl(263, 57%, 44%)
HSVhsv(263, 72%, 69%)
CMYKcmyk(44.6%, 72.3%, 0%, 30.6%)
CIE-LABlab(33.91, 49.34, -59.97)
CIE-LCHlch(33.91, 77.66, 309.45°)
OKLaboklab(45.23% 0.0808 -0.1717)
OKLCHoklch(45.23% 0.19 295.2)
XYZxyz(14.0690, 7.9673, 42.3830)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B1 #80B131
analogous
#3140B1 #6231B1 #A231B1
triadic
#6231B1 #B16231 #31B162
tetradic
#6231B1 #B13140 #80B131 #31B1A2
square
#6231B1 #B13140 #80B131 #31B1A2
split-complementary
#6231B1 #B1A231 #40B131
monochromatic
#2D1651 #472481 #6231B1 #8151CF #A380DC

Accessibility & contrast

On white

8.10
#6231B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6231B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6231B1#FFFFFF#000000##FFFFFF
##6231B11.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#4C526E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6231b1;
/* rgb */ color: rgb(98, 49, 177);
/* oklch */ color: oklch(45.2% 0.190 295.2);
Tailwind
colors: {
  custom: {
    50: '#966dc9',
    500: '#6231b1',
    950: '#000000',
  },
}
SCSS
$custom: #6231b1;
$custom-light: #966dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b1",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 262.969,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45225,
    "c": 0.18972,
    "h": 295.2
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#6231B1
secondary
#A8C579
accent
#E048A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231B1

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

Preview Lab → · Contrast checker → · Palette generator →

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