#B340F5#B340F5

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

Color values

HEX#B340F5
RGBrgb(179, 64, 245)
HSLhsl(278, 90%, 61%)
HSVhsv(278, 74%, 96%)
CMYKcmyk(26.9%, 73.9%, 0%, 3.9%)
CIE-LABlab(51.66, 73.12, -69.82)
CIE-LCHlch(51.66, 101.10, 316.32°)
OKLaboklab(61.61% 0.1644 -0.198)
OKLCHoklch(61.61% 0.257 309.7)
XYZxyz(36.9019, 19.8438, 88.2548)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B340F5 #82F540
analogous
#5940F5 #B340F5 #F540DC
triadic
#B340F5 #F5B340 #40F5B3
tetradic
#B340F5 #F55940 #82F540 #40DCF5
square
#B340F5 #F55940 #82F540 #40DCF5
split-complementary
#B340F5 #DCF540 #40F559
monochromatic
#7409B1 #9A0CEB #B340F5 #CA7AF8 #E1B4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B340F5#FFFFFF#000000##000000
##B340F51.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)
#0076FA
Deuteranopia (green-blind)
#057DF1
Tritanopia (blue-blind)
#A96B98
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #b340f5;
/* rgb */ color: rgb(179, 64, 245);
/* oklch */ color: oklch(61.6% 0.257 309.7);
Tailwind
colors: {
  custom: {
    50: '#cf80f9',
    500: '#b340f5',
    950: '#000000',
  },
}
SCSS
$custom: #b340f5;
$custom-light: #cf80f9;
$custom-dark: #000000;
JSON
{
  "hex": "#b340f5",
  "rgb": {
    "r": 179,
    "g": 64,
    "b": 245
  },
  "hsl": {
    "h": 278.122,
    "s": 90.05,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61606,
    "c": 0.25733,
    "h": 309.7
  },
  "luminance": 0.19843
}

Semantic roles & 50–950 ramp

primary
#B340F5
secondary
#BFEBA6
accent
#E60054
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#150B17
muted
#837C85

Preview Lab

Preview with #B340F5

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

Preview Lab → · Contrast checker → · Palette generator →

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