#6231B7#6231B7

#6231B7 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.196 H 293.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#6231B7
RGBrgb(98, 49, 183)
HSLhsl(262, 58%, 45%)
HSVhsv(262, 73%, 72%)
CMYKcmyk(46.4%, 73.2%, 0%, 28.2%)
CIE-LABlab(34.42, 50.94, -62.71)
CIE-LCHlch(34.42, 80.79, 309.09°)
OKLaboklab(45.74% 0.0794 -0.1797)
OKLCHoklch(45.74% 0.196 293.8)
XYZxyz(14.6802, 8.2118, 45.6021)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B7 #86B731
analogous
#3143B7 #6231B7 #A531B7
triadic
#6231B7 #B76231 #31B762
tetradic
#6231B7 #B73143 #86B731 #31B7A5
square
#6231B7 #B73143 #86B731 #31B7A5
split-complementary
#6231B7 #B7A531 #43B731
monochromatic
#2E1756 #482487 #6231B7 #8254D1 #A584DE

Accessibility & contrast

On white

7.95
#6231B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6231B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6231B7#FFFFFF#000000##FFFFFF
##6231B71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#495471
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6231b7;
/* rgb */ color: rgb(98, 49, 183);
/* oklch */ color: oklch(45.7% 0.196 293.8);
Tailwind
colors: {
  custom: {
    50: '#966ece',
    500: '#6231b7',
    950: '#000000',
  },
}
SCSS
$custom: #6231b7;
$custom-light: #966ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b7",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 261.94,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45739,
    "c": 0.19648,
    "h": 293.8
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

primary
#6231B7
secondary
#ACC87C
accent
#E147A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #6231B7

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

Preview Lab → · Contrast checker → · Palette generator →

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