#8738D2#8738D2

#8738D2 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.9% C 0.222 H 302.7°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8738D2
RGBrgb(135, 56, 210)
HSLhsl(271, 63%, 52%)
HSVhsv(271, 73%, 82%)
CMYKcmyk(35.7%, 73.3%, 0%, 17.6%)
CIE-LABlab(42.20, 60.86, -65.58)
CIE-LCHlch(42.20, 89.47, 312.86°)
OKLaboklab(52.91% 0.12 -0.1869)
OKLCHoklch(52.91% 0.222 302.7)
XYZxyz(23.0359, 12.6324, 62.1850)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8738D2 #83D238
analogous
#3A38D2 #8738D2 #D238D0
triadic
#8738D2 #D28738 #38D287
tetradic
#8738D2 #D23A38 #83D238 #38D0D2
square
#8738D2 #D23A38 #83D238 #38D0D2
split-complementary
#8738D2 #D0D238 #38D23A
monochromatic
#491A75 #6826A7 #8738D2 #A56ADD #C39CE9

Accessibility & contrast

On white

5.96
#8738D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8738D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8738D2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8738D2#FFFFFF#000000##FFFFFF
##8738D21.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#775E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8738d2;
/* rgb */ color: rgb(135, 56, 210);
/* oklch */ color: oklch(52.9% 0.222 302.7);
Tailwind
colors: {
  custom: {
    50: '#b076e1',
    500: '#8738d2',
    950: '#000000',
  },
}
SCSS
$custom: #8738d2;
$custom-light: #b076e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8738d2",
  "rgb": {
    "r": 135,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 270.779,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52906,
    "c": 0.22215,
    "h": 302.7
  },
  "luminance": 0.12632
}

Semantic roles & 50–950 ramp

primary
#8738D2
secondary
#B2D591
accent
#E64292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8738D2

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

Preview Lab → · Contrast checker → · Palette generator →

#8738D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva