#B370F2#B370F2

#B370F2 is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.2% C 0.192 H 305.6°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#B370F2
RGBrgb(179, 112, 242)
HSLhsl(271, 83%, 69%)
HSVhsv(271, 54%, 95%)
CMYKcmyk(26%, 53.7%, 0%, 5.1%)
CIE-LABlab(59.51, 50.49, -55.53)
CIE-LCHlch(59.51, 75.05, 312.28°)
OKLaboklab(67.22% 0.1121 -0.1563)
OKLCHoklch(67.22% 0.192 305.6)
XYZxyz(40.4082, 27.5831, 87.1825)
Luminance0.2758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B370F2 #AFF270
analogous
#7270F2 #B370F2 #F270F0
triadic
#B370F2 #F2B370 #70F2B3
tetradic
#B370F2 #F27270 #AFF270 #70F0F2
square
#B370F2 #F27270 #AFF270 #70F0F2
split-complementary
#B370F2 #F0F270 #70F272
monochromatic
#7713D4 #9538ED #B370F2 #D1A8F7 #EFE0FC

Accessibility & contrast

On white

3.22
#B370F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#B370F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B370F2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B370F2#FFFFFF#000000##000000
##B370F21.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#448DF6
Deuteranopia (green-blind)
#5A90EF
Tritanopia (blue-blind)
#A988A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #b370f2;
/* rgb */ color: rgb(179, 112, 242);
/* oklch */ color: oklch(67.2% 0.192 305.6);
Tailwind
colors: {
  custom: {
    50: '#cd9bf7',
    500: '#b370f2',
    950: '#000000',
  },
}
SCSS
$custom: #b370f2;
$custom-light: #cd9bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b370f2",
  "rgb": {
    "r": 179,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 270.923,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.67216,
    "c": 0.19229,
    "h": 305.6
  },
  "luminance": 0.27583
}

Semantic roles & 50–950 ramp

primary
#B370F2
secondary
#DEF2CC
accent
#E0066F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B370F2

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

Preview Lab → · Contrast checker → · Palette generator →

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