#B272F2#B272F2

#B272F2 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.4% C 0.189 H 305.0°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#B272F2
RGBrgb(178, 114, 242)
HSLhsl(270, 83%, 70%)
HSVhsv(270, 53%, 95%)
CMYKcmyk(26.4%, 52.9%, 0%, 5.1%)
CIE-LABlab(59.81, 49.18, -55.06)
CIE-LCHlch(59.81, 73.83, 311.77°)
OKLaboklab(67.41% 0.1083 -0.1549)
OKLCHoklch(67.41% 0.189 305)
XYZxyz(40.4010, 27.9106, 87.2461)
Luminance0.2791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B272F2 #B2F272
analogous
#7272F2 #B272F2 #F272F2
triadic
#B272F2 #F2B272 #72F2B2
tetradic
#B272F2 #F27272 #B2F272 #72F2F2
square
#B272F2 #F27272 #B2F272 #72F2F2
split-complementary
#B272F2 #F2F272 #72F272
monochromatic
#7514D6 #933AED #B272F2 #D1AAF7 #EFE2FC

Accessibility & contrast

On white

3.19
#B272F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#B272F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B272F2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B272F2#FFFFFF#000000##000000
##B272F21.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF6
Deuteranopia (green-blind)
#5C90EF
Tritanopia (blue-blind)
#A78AA7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #b272f2;
/* rgb */ color: rgb(178, 114, 242);
/* oklch */ color: oklch(67.4% 0.189 305.0);
Tailwind
colors: {
  custom: {
    50: '#cc9cf7',
    500: '#b272f2',
    950: '#000000',
  },
}
SCSS
$custom: #b272f2;
$custom-light: #cc9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#b272f2",
  "rgb": {
    "r": 178,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 270,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67411,
    "c": 0.18902,
    "h": 305
  },
  "luminance": 0.2791
}

Semantic roles & 50–950 ramp

primary
#B272F2
secondary
#E0F2CE
accent
#E00673
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B272F2

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

Preview Lab → · Contrast checker → · Palette generator →

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