#B045F1#B045F1

#B045F1 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.4% C 0.248 H 309.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#B045F1
RGBrgb(176, 69, 241)
HSLhsl(277, 86%, 61%)
HSVhsv(277, 71%, 95%)
CMYKcmyk(27%, 71.4%, 0%, 5.5%)
CIE-LABlab(51.65, 69.84, -67.61)
CIE-LCHlch(51.65, 97.21, 315.93°)
OKLaboklab(61.43% 0.1567 -0.1916)
OKLCHoklch(61.43% 0.248 309.3)
XYZxyz(35.9066, 19.8379, 85.1396)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B045F1 #86F145
analogous
#5A45F1 #B045F1 #F145DC
triadic
#B045F1 #F1B045 #45F1B0
tetradic
#B045F1 #F15A45 #86F145 #45DCF1
square
#B045F1 #F15A45 #86F145 #45DCF1
split-complementary
#B045F1 #DCF145 #45F15A
monochromatic
#710DAE #9711E7 #B045F1 #C87EF5 #E0B7FA

Accessibility & contrast

On white

4.23
#B045F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#B045F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B045F1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B045F1#FFFFFF#000000##000000
##B045F11.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F6
Deuteranopia (green-blind)
#1A7DED
Tritanopia (blue-blind)
#A66C97
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b045f1;
/* rgb */ color: rgb(176, 69, 241);
/* oklch */ color: oklch(61.4% 0.248 309.3);
Tailwind
colors: {
  custom: {
    50: '#cd82f7',
    500: '#b045f1',
    950: '#000000',
  },
}
SCSS
$custom: #b045f1;
$custom-light: #cd82f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b045f1",
  "rgb": {
    "r": 176,
    "g": 69,
    "b": 241
  },
  "hsl": {
    "h": 277.326,
    "s": 86,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61431,
    "c": 0.24755,
    "h": 309.3
  },
  "luminance": 0.19837
}

Semantic roles & 50–950 ramp

primary
#B045F1
secondary
#C1E9A8
accent
#E30357
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #B045F1

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

Preview Lab → · Contrast checker → · Palette generator →

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