#B234EA#B234EA

#B234EA is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.7% C 0.259 H 312.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#B234EA
RGBrgb(178, 52, 234)
HSLhsl(282, 81%, 56%)
HSVhsv(282, 78%, 92%)
CMYKcmyk(23.9%, 77.8%, 0%, 8.2%)
CIE-LABlab(49.33, 74.86, -67.43)
CIE-LCHlch(49.33, 100.75, 317.99°)
OKLaboklab(59.7% 0.175 -0.1909)
OKLCHoklch(59.7% 0.259 312.5)
XYZxyz(34.4367, 17.8625, 79.4597)
Luminance0.1786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B234EA #6CEA34
analogous
#5734EA #B234EA #EA34C7
triadic
#B234EA #EAB234 #34EAB2
tetradic
#B234EA #EA5734 #6CEA34 #34C7EA
square
#B234EA #EA5734 #6CEA34 #34C7EA
split-complementary
#B234EA #C7EA34 #34EA57
monochromatic
#6B0F94 #9415CC #B234EA #C76BF0 #DCA3F5

Accessibility & contrast

On white

4.59
#B234EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#B234EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #B234EA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B234EA#FFFFFF#000000##FFFFFF
##B234EA1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#1178E6
Tritanopia (blue-blind)
#AB618F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #b234ea;
/* rgb */ color: rgb(178, 52, 234);
/* oklch */ color: oklch(59.7% 0.259 312.5);
Tailwind
colors: {
  custom: {
    50: '#ce7af2',
    500: '#b234ea',
    950: '#000000',
  },
}
SCSS
$custom: #b234ea;
$custom-light: #ce7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#b234ea",
  "rgb": {
    "r": 178,
    "g": 52,
    "b": 234
  },
  "hsl": {
    "h": 281.538,
    "s": 81.25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59695,
    "c": 0.25896,
    "h": 312.5
  },
  "luminance": 0.17861
}

Semantic roles & 50–950 ramp

primary
#B234EA
secondary
#AEE297
accent
#F8306E
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A17
muted
#837C85

Preview Lab

Preview with #B234EA

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

Preview Lab → · Contrast checker → · Palette generator →

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