#8138B2#8138B2

#8138B2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.188 H 308.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8138B2
RGBrgb(129, 56, 178)
HSLhsl(276, 52%, 46%)
HSVhsv(276, 69%, 70%)
CMYKcmyk(27.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(39.09, 52.33, -51.99)
CIE-LCHlch(39.09, 73.76, 315.19°)
OKLaboklab(49.79% 0.117 -0.1472)
OKLCHoklch(49.79% 0.188 308.5)
XYZxyz(18.5017, 10.7101, 43.2034)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138B2 #69B238
analogous
#4438B2 #8138B2 #B238A6
triadic
#8138B2 #B28138 #38B281
tetradic
#8138B2 #B24438 #69B238 #38A6B2
square
#8138B2 #B24438 #69B238 #38A6B2
split-complementary
#8138B2 #A6B238 #38B244
monochromatic
#3E1B55 #5F2983 #8138B2 #9F5CCC #BA8ADA

Accessibility & contrast

On white

6.68
#8138B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8138B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138B2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138B2#FFFFFF#000000##FFFFFF
##8138B21.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#7A5271
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8138b2;
/* rgb */ color: rgb(129, 56, 178);
/* oklch */ color: oklch(49.8% 0.188 308.5);
Tailwind
colors: {
  custom: {
    50: '#aa74ca',
    500: '#8138b2',
    950: '#000000',
  },
}
SCSS
$custom: #8138b2;
$custom-light: #aa74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8138b2",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 275.902,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4979,
    "c": 0.18799,
    "h": 308.5
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#8138B2
secondary
#9CC581
accent
#DC4C86
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8138B2

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

Preview Lab → · Contrast checker → · Palette generator →

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