#B238E0#B238E0

#B238E0 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.3% C 0.247 H 314.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#B238E0
RGBrgb(178, 56, 224)
HSLhsl(284, 73%, 55%)
HSVhsv(284, 75%, 88%)
CMYKcmyk(20.5%, 75%, 0%, 12.2%)
CIE-LABlab(49.10, 71.62, -62.13)
CIE-LCHlch(49.10, 94.81, 319.05°)
OKLaboklab(59.32% 0.1735 -0.1754)
OKLCHoklch(59.32% 0.247 314.7)
XYZxyz(33.2266, 17.6763, 72.1682)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B238E0 #66E038
analogous
#5E38E0 #B238E0 #E038BA
triadic
#B238E0 #E0B238 #38E0B2
tetradic
#B238E0 #E05E38 #66E038 #38BAE0
square
#B238E0 #E05E38 #66E038 #38BAE0
split-complementary
#B238E0 #BAE038 #38E05E
monochromatic
#691588 #921DBD #B238E0 #C66DE8 #DBA2F0

Accessibility & contrast

On white

4.63
#B238E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#B238E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B238E0
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B238E0#FFFFFF#000000##FFFFFF
##B238E01.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#2E78DC
Tritanopia (blue-blind)
#AE5E8A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b238e0;
/* rgb */ color: rgb(178, 56, 224);
/* oklch */ color: oklch(59.3% 0.247 314.7);
Tailwind
colors: {
  custom: {
    50: '#ce7beb',
    500: '#b238e0',
    950: '#000000',
  },
}
SCSS
$custom: #b238e0;
$custom-light: #ce7beb;
$custom-dark: #000000;
JSON
{
  "hex": "#b238e0",
  "rgb": {
    "r": 178,
    "g": 56,
    "b": 224
  },
  "hsl": {
    "h": 283.571,
    "s": 73.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59319,
    "c": 0.24667,
    "h": 314.7
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

primary
#B238E0
secondary
#AADD97
accent
#F0386A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B238E0

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

Preview Lab → · Contrast checker → · Palette generator →

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