#B340ED#B340ED

#B340ED is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 61.0% C 0.250 H 311.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#B340ED
RGBrgb(179, 64, 237)
HSLhsl(280, 83%, 59%)
HSVhsv(280, 73%, 93%)
CMYKcmyk(24.5%, 73%, 0%, 7.1%)
CIE-LABlab(51.11, 71.50, -66.22)
CIE-LCHlch(51.11, 97.46, 317.20°)
OKLaboklab(61.05% 0.1657 -0.1874)
OKLCHoklch(61.05% 0.25 311.5)
XYZxyz(35.7070, 19.3658, 81.9613)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340ED #7AED40
analogous
#5D40ED #B340ED #ED40D1
triadic
#B340ED #EDB340 #40EDB3
tetradic
#B340ED #ED5D40 #7AED40 #40D1ED
square
#B340ED #ED5D40 #7AED40 #40D1ED
split-complementary
#B340ED #D1ED40 #40ED5D
monochromatic
#720FA3 #9915DB #B340ED #C978F2 #E0B0F8

Accessibility & contrast

On white

4.31
#B340ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#B340ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B340ED
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B340ED#FFFFFF#000000##000000
##B340ED1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074F2
Deuteranopia (green-blind)
#237CE9
Tritanopia (blue-blind)
#AC6894
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #b340ed;
/* rgb */ color: rgb(179, 64, 237);
/* oklch */ color: oklch(61.0% 0.250 311.5);
Tailwind
colors: {
  custom: {
    50: '#cf7ff4',
    500: '#b340ed',
    950: '#000000',
  },
}
SCSS
$custom: #b340ed;
$custom-light: #cf7ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#b340ed",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 279.884,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61046,
    "c": 0.25016,
    "h": 311.5
  },
  "luminance": 0.19365
}

Semantic roles & 50–950 ramp

primary
#B340ED
secondary
#B9E6A2
accent
#F92F73
background
#FDF8FF
surface
#FAEFFE
border
#D3CAD6
text
#140B17
muted
#837C85

Preview Lab

Preview with #B340ED

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

Preview Lab → · Contrast checker → · Palette generator →

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