#B338E0#B338E0

#B338E0 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.5% C 0.247 H 315.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#B338E0
RGBrgb(179, 56, 224)
HSLhsl(284, 73%, 55%)
HSVhsv(284, 75%, 88%)
CMYKcmyk(20.1%, 75%, 0%, 12.2%)
CIE-LABlab(49.25, 71.80, -61.89)
CIE-LCHlch(49.25, 94.79, 319.24°)
OKLaboklab(59.45% 0.1747 -0.1746)
OKLCHoklch(59.45% 0.247 315)
XYZxyz(33.4569, 17.7951, 72.1790)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B338E0 #65E038
analogous
#5F38E0 #B338E0 #E038B9
triadic
#B338E0 #E0B338 #38E0B3
tetradic
#B338E0 #E05F38 #65E038 #38B9E0
square
#B338E0 #E05F38 #65E038 #38B9E0
split-complementary
#B338E0 #B9E038 #38E05F
monochromatic
#6A1588 #931DBD #B338E0 #C76DE8 #DBA2F0

Accessibility & contrast

On white

4.61
#B338E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#B338E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B338E0
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B338E0#FFFFFF#000000##FFFFFF
##B338E01.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#3078DC
Tritanopia (blue-blind)
#AF5E8A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b338e0;
/* rgb */ color: rgb(179, 56, 224);
/* oklch */ color: oklch(59.5% 0.247 315.0);
Tailwind
colors: {
  custom: {
    50: '#ce7beb',
    500: '#b338e0',
    950: '#000000',
  },
}
SCSS
$custom: #b338e0;
$custom-light: #ce7beb;
$custom-dark: #000000;
JSON
{
  "hex": "#b338e0",
  "rgb": {
    "r": 179,
    "g": 56,
    "b": 224
  },
  "hsl": {
    "h": 283.929,
    "s": 73.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59451,
    "c": 0.24699,
    "h": 315
  },
  "luminance": 0.17794
}

Semantic roles & 50–950 ramp

primary
#B338E0
secondary
#A9DD97
accent
#F03869
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B338E0

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

Preview Lab → · Contrast checker → · Palette generator →

#B338E0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva