#B282F2#B282F2

#B282F2 is a light, vivid violet. Relative luminance 0.318; OKLCH L 69.9% C 0.164 H 302.1°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#B282F2
RGBrgb(178, 130, 242)
HSLhsl(266, 81%, 73%)
HSVhsv(266, 46%, 95%)
CMYKcmyk(26.4%, 46.3%, 0%, 5.1%)
CIE-LABlab(63.21, 40.51, -49.66)
CIE-LCHlch(63.21, 64.09, 309.21°)
OKLaboklab(69.94% 0.0874 -0.1392)
OKLCHoklch(69.94% 0.164 302.1)
XYZxyz(42.3662, 31.8410, 87.9011)
Luminance0.3184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B282F2 #C2F282
analogous
#828AF2 #B282F2 #EA82F2
triadic
#B282F2 #F2B282 #82F2B2
tetradic
#B282F2 #F2828A #C2F282 #82F2EA
square
#B282F2 #F2828A #C2F282 #82F2EA
split-complementary
#B282F2 #F2EA82 #8AF282
monochromatic
#6E18E2 #904BEC #B282F2 #D4B9F8 #EEE3FC

Accessibility & contrast

On white

2.85
#B282F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#B282F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B282F2
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B282F2#FFFFFF#000000##000000
##B282F21.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6298F6
Deuteranopia (green-blind)
#6D99EF
Tritanopia (blue-blind)
#A696AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #b282f2;
/* rgb */ color: rgb(178, 130, 242);
/* oklch */ color: oklch(69.9% 0.164 302.1);
Tailwind
colors: {
  custom: {
    50: '#cba7f7',
    500: '#b282f2',
    950: '#000000',
  },
}
SCSS
$custom: #b282f2;
$custom-light: #cba7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#b282f2",
  "rgb": {
    "r": 178,
    "g": 130,
    "b": 242
  },
  "hsl": {
    "h": 265.714,
    "s": 81.159,
    "l": 72.941
  },
  "oklch": {
    "l": 0.69942,
    "c": 0.16433,
    "h": 302.1
  },
  "luminance": 0.31841
}

Semantic roles & 50–950 ramp

primary
#B282F2
secondary
#E8F4D7
accent
#DE0882
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #B282F2

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

Preview Lab → · Contrast checker → · Palette generator →

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