#8231B2#8231B2

#8231B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.197 H 309.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8231B2
RGBrgb(130, 49, 178)
HSLhsl(278, 57%, 45%)
HSVhsv(278, 72%, 70%)
CMYKcmyk(27%, 72.5%, 0%, 30.2%)
CIE-LABlab(38.12, 55.63, -53.54)
CIE-LCHlch(38.12, 77.21, 316.10°)
OKLaboklab(49.13% 0.1257 -0.1517)
OKLCHoklch(49.13% 0.197 309.6)
XYZxyz(18.3385, 10.1572, 43.1053)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8231B2 #61B231
analogous
#4131B2 #8231B2 #B231A2
triadic
#8231B2 #B28231 #31B282
tetradic
#8231B2 #B24131 #61B231 #31A2B2
square
#8231B2 #B24131 #61B231 #31A2B2
split-complementary
#8231B2 #A2B231 #31B241
monochromatic
#3C1752 #5F2482 #8231B2 #A051CF #BA81DC

Accessibility & contrast

On white

6.93
#8231B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8231B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8231B2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8231B2#FFFFFF#000000##FFFFFF
##8231B21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#7B4E6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8231b2;
/* rgb */ color: rgb(130, 49, 178);
/* oklch */ color: oklch(49.1% 0.197 309.6);
Tailwind
colors: {
  custom: {
    50: '#ab71ca',
    500: '#8231b2',
    950: '#000000',
  },
}
SCSS
$custom: #8231b2;
$custom-light: #ab71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8231b2",
  "rgb": {
    "r": 130,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 277.674,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.19695,
    "h": 309.6
  },
  "luminance": 0.10157
}

Semantic roles & 50–950 ramp

primary
#8231B2
secondary
#96C579
accent
#E04880
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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