#B258F2#B258F2

#B258F2 is a light, highly saturated violet. Relative luminance 0.229; OKLCH L 63.8% C 0.226 H 308.1°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B258F2
RGBrgb(178, 88, 242)
HSLhsl(275, 86%, 65%)
HSVhsv(275, 64%, 95%)
CMYKcmyk(26.4%, 63.6%, 0%, 5.1%)
CIE-LABlab(54.92, 62.23, -62.88)
CIE-LCHlch(54.92, 88.47, 314.70°)
OKLaboklab(63.85% 0.1396 -0.1777)
OKLCHoklch(63.85% 0.226 308.1)
XYZxyz(37.8736, 22.8558, 86.4036)
Luminance0.2286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B258F2 #98F258
analogous
#6558F2 #B258F2 #F258E5
triadic
#B258F2 #F2B258 #58F2B2
tetradic
#B258F2 #F26558 #98F258 #58E5F2
square
#B258F2 #F26558 #98F258 #58E5F2
split-complementary
#B258F2 #E5F258 #58F265
monochromatic
#770FC1 #981FEE #B258F2 #CC91F6 #E6CAFB

Accessibility & contrast

On white

3.77
#B258F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#B258F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B258F2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B258F2#FFFFFF#000000##000000
##B258F21.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#3C84EF
Tritanopia (blue-blind)
#A8789D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #b258f2;
/* rgb */ color: rgb(178, 88, 242);
/* oklch */ color: oklch(63.8% 0.226 308.1);
Tailwind
colors: {
  custom: {
    50: '#cd8cf7',
    500: '#b258f2',
    950: '#000000',
  },
}
SCSS
$custom: #b258f2;
$custom-light: #cd8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b258f2",
  "rgb": {
    "r": 178,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 275.065,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63845,
    "c": 0.226,
    "h": 308.1
  },
  "luminance": 0.22855
}

Semantic roles & 50–950 ramp

primary
#B258F2
secondary
#CEEDB8
accent
#E20360
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #B258F2

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

Preview Lab → · Contrast checker → · Palette generator →

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