#8138B3#8138B3

#8138B3 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.9% C 0.189 H 308.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8138B3
RGBrgb(129, 56, 179)
HSLhsl(276, 52%, 46%)
HSVhsv(276, 69%, 70%)
CMYKcmyk(27.9%, 68.7%, 0%, 29.8%)
CIE-LABlab(39.16, 52.55, -52.47)
CIE-LCHlch(39.16, 74.26, 315.05°)
OKLaboklab(49.86% 0.1169 -0.1486)
OKLCHoklch(49.86% 0.189 308.2)
XYZxyz(18.6024, 10.7504, 43.7341)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8138B3 #6AB338
analogous
#4438B3 #8138B3 #B338A7
triadic
#8138B3 #B38138 #38B381
tetradic
#8138B3 #B34438 #6AB338 #38A7B3
square
#8138B3 #B34438 #6AB338 #38A7B3
split-complementary
#8138B3 #A7B338 #38B344
monochromatic
#3E1B56 #5F2984 #8138B3 #9F5CCC #BA8BDB

Accessibility & contrast

On white

6.67
#8138B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8138B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8138B3
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8138B3#FFFFFF#000000##FFFFFF
##8138B31.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#1C5DB0
Tritanopia (blue-blind)
#795371
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8138b3;
/* rgb */ color: rgb(129, 56, 179);
/* oklch */ color: oklch(49.9% 0.189 308.2);
Tailwind
colors: {
  custom: {
    50: '#aa74ca',
    500: '#8138b3',
    950: '#000000',
  },
}
SCSS
$custom: #8138b3;
$custom-light: #aa74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8138b3",
  "rgb": {
    "r": 129,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 275.61,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49861,
    "c": 0.18903,
    "h": 308.2
  },
  "luminance": 0.1075
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8138B3

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

Preview Lab → · Contrast checker → · Palette generator →

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