#8231B5#8231B5

#8231B5 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.4% C 0.200 H 308.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8231B5
RGBrgb(130, 49, 181)
HSLhsl(277, 57%, 45%)
HSVhsv(277, 73%, 71%)
CMYKcmyk(28.2%, 72.9%, 0%, 29%)
CIE-LABlab(38.34, 56.29, -54.97)
CIE-LCHlch(38.34, 78.68, 315.68°)
OKLaboklab(49.35% 0.1252 -0.1559)
OKLCHoklch(49.35% 0.2 308.8)
XYZxyz(18.6430, 10.2790, 44.7090)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8231B5 #64B531
analogous
#4031B5 #8231B5 #B531A6
triadic
#8231B5 #B58231 #31B582
tetradic
#8231B5 #B54031 #64B531 #31A6B5
square
#8231B5 #B54031 #64B531 #31A6B5
split-complementary
#8231B5 #A6B531 #31B540
monochromatic
#3D1755 #5F2485 #8231B5 #A053D0 #BA83DD

Accessibility & contrast

On white

6.87
#8231B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8231B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8231B5
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8231B5#FFFFFF#000000##FFFFFF
##8231B51.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0A5BB2
Tritanopia (blue-blind)
#7A5070
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8231b5;
/* rgb */ color: rgb(130, 49, 181);
/* oklch */ color: oklch(49.4% 0.200 308.8);
Tailwind
colors: {
  custom: {
    50: '#ab71cc',
    500: '#8231b5',
    950: '#000000',
  },
}
SCSS
$custom: #8231b5;
$custom-light: #ab71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8231b5",
  "rgb": {
    "r": 130,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 276.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49352,
    "c": 0.19991,
    "h": 308.8
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#8231B5
secondary
#98C77B
accent
#E14782
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8231B5

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

Preview Lab → · Contrast checker → · Palette generator →

#8231B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva