#8A3FE2#8A3FE2

#8A3FE2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.3% C 0.231 H 299.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A3FE2
RGBrgb(138, 63, 226)
HSLhsl(268, 74%, 57%)
HSVhsv(268, 72%, 89%)
CMYKcmyk(38.9%, 72.1%, 0%, 11.4%)
CIE-LABlab(44.87, 62.13, -70.38)
CIE-LCHlch(44.87, 93.88, 311.44°)
OKLaboklab(55.25% 0.1146 -0.201)
OKLCHoklch(55.25% 0.231 299.7)
XYZxyz(25.9828, 14.4490, 73.3568)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FE2 #97E23F
analogous
#3F46E2 #8A3FE2 #DB3FE2
triadic
#8A3FE2 #E28A3F #3FE28A
tetradic
#8A3FE2 #E23F46 #97E23F #3FE2DB
square
#8A3FE2 #E23F46 #97E23F #3FE2DB
split-complementary
#8A3FE2 #E2DB3F #46E23F
monochromatic
#4E1691 #6B1EC6 #8A3FE2 #AA74EA #CBA9F2

Accessibility & contrast

On white

5.40
#8A3FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A3FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FE2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FE2#FFFFFF#000000##FFFFFF
##8A3FE21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#75688D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a3fe2;
/* rgb */ color: rgb(138, 63, 226);
/* oklch */ color: oklch(55.3% 0.231 299.7);
Tailwind
colors: {
  custom: {
    50: '#b37bec',
    500: '#8a3fe2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fe2;
$custom-light: #b37bec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fe2",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 226
  },
  "hsl": {
    "h": 267.607,
    "s": 73.756,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55254,
    "c": 0.23133,
    "h": 299.7
  },
  "luminance": 0.14449
}

Semantic roles & 50–950 ramp

primary
#8A3FE2
secondary
#C1E09D
accent
#F0379B
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3FE2

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

Preview Lab → · Contrast checker → · Palette generator →

#8A3FE2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva