#6231B3#6231B3

#6231B3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.192 H 294.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6231B3
RGBrgb(98, 49, 179)
HSLhsl(263, 57%, 45%)
HSVhsv(263, 73%, 70%)
CMYKcmyk(45.3%, 72.6%, 0%, 29.8%)
CIE-LABlab(34.08, 49.87, -60.89)
CIE-LCHlch(34.08, 78.71, 309.32°)
OKLaboklab(45.4% 0.0803 -0.1744)
OKLCHoklch(45.4% 0.192 294.7)
XYZxyz(14.2698, 8.0476, 43.4406)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B3 #82B331
analogous
#3141B3 #6231B3 #A331B3
triadic
#6231B3 #B36231 #31B362
tetradic
#6231B3 #B33141 #82B331 #31B3A3
square
#6231B3 #B33141 #82B331 #31B3A3
split-complementary
#6231B3 #B3A331 #41B331
monochromatic
#2D1753 #482483 #6231B3 #8152D0 #A482DD

Accessibility & contrast

On white

8.05
#6231B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6231B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6231B3#FFFFFF#000000##FFFFFF
##6231B31.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#4B536F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6231b3;
/* rgb */ color: rgb(98, 49, 179);
/* oklch */ color: oklch(45.4% 0.192 294.7);
Tailwind
colors: {
  custom: {
    50: '#966ecb',
    500: '#6231b3',
    950: '#000000',
  },
}
SCSS
$custom: #6231b3;
$custom-light: #966ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b3",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 262.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45396,
    "c": 0.19198,
    "h": 294.7
  },
  "luminance": 0.08048
}

Semantic roles & 50–950 ramp

primary
#6231B3
secondary
#A9C67A
accent
#E048A7
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231B3

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

Preview Lab → · Contrast checker → · Palette generator →

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