#B239F2#B239F2

#B239F2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 60.7% C 0.261 H 310.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B239F2
RGBrgb(178, 57, 242)
HSLhsl(279, 88%, 59%)
HSVhsv(279, 76%, 95%)
CMYKcmyk(26.4%, 76.4%, 0%, 5.1%)
CIE-LABlab(50.46, 74.80, -70.10)
CIE-LCHlch(50.46, 102.52, 316.86°)
OKLaboklab(60.66% 0.1695 -0.1988)
OKLCHoklch(60.66% 0.261 310.5)
XYZxyz(35.8471, 18.8029, 85.7281)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B239F2 #79F239
analogous
#5539F2 #B239F2 #F239D6
triadic
#B239F2 #F2B239 #39F2B2
tetradic
#B239F2 #F25539 #79F239 #39D6F2
square
#B239F2 #F25539 #79F239 #39D6F2
split-complementary
#B239F2 #D6F239 #39F255
monochromatic
#700BA6 #970FDF #B239F2 #C872F6 #DFACFA

Accessibility & contrast

On white

4.41
#B239F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#B239F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B239F2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B239F2#FFFFFF#000000##000000
##B239F21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#A96695
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #b239f2;
/* rgb */ color: rgb(178, 57, 242);
/* oklch */ color: oklch(60.7% 0.261 310.5);
Tailwind
colors: {
  custom: {
    50: '#cf7cf7',
    500: '#b239f2',
    950: '#000000',
  },
}
SCSS
$custom: #b239f2;
$custom-light: #cf7cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b239f2",
  "rgb": {
    "r": 178,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 279.243,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60663,
    "c": 0.26125,
    "h": 310.5
  },
  "luminance": 0.18802
}

Semantic roles & 50–950 ramp

primary
#B239F2
secondary
#B8E89F
accent
#FE2A73
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#150B17
muted
#837C85

Preview Lab

Preview with #B239F2

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

Preview Lab → · Contrast checker → · Palette generator →

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