#B174F2#B174F2

#B174F2 is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.6% C 0.186 H 304.2°. Best body text is #000000 at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#B174F2
RGBrgb(177, 116, 242)
HSLhsl(269, 83%, 70%)
HSVhsv(269, 52%, 95%)
CMYKcmyk(26.9%, 52.1%, 0%, 5.1%)
CIE-LABlab(60.11, 47.87, -54.58)
CIE-LCHlch(60.11, 72.60, 311.25°)
OKLaboklab(67.61% 0.1045 -0.1535)
OKLCHoklch(67.61% 0.186 304.2)
XYZxyz(40.4004, 28.2488, 87.3114)
Luminance0.2825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B174F2 #B5F274
analogous
#7476F2 #B174F2 #F074F2
triadic
#B174F2 #F2B174 #74F2B1
tetradic
#B174F2 #F27476 #B5F274 #74F2F0
square
#B174F2 #F27476 #B5F274 #74F2F0
split-complementary
#B174F2 #F2F074 #76F274
monochromatic
#7314D7 #923CED #B174F2 #D0ACF7 #EFE3FC

Accessibility & contrast

On white

3.16
#B174F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.65
#B174F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B174F2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B174F2#FFFFFF#000000##000000
##B174F21.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8FF6
Deuteranopia (green-blind)
#5D91EF
Tritanopia (blue-blind)
#A68BA8
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b174f2;
/* rgb */ color: rgb(177, 116, 242);
/* oklch */ color: oklch(67.6% 0.186 304.2);
Tailwind
colors: {
  custom: {
    50: '#cb9ef7',
    500: '#b174f2',
    950: '#000000',
  },
}
SCSS
$custom: #b174f2;
$custom-light: #cb9ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#b174f2",
  "rgb": {
    "r": 177,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 269.048,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67612,
    "c": 0.18574,
    "h": 304.2
  },
  "luminance": 0.28249
}

Semantic roles & 50–950 ramp

primary
#B174F2
secondary
#E1F2CF
accent
#DF0676
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #B174F2

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

Preview Lab → · Contrast checker → · Palette generator →

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