#B274F2#B274F2

#B274F2 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.7% C 0.186 H 304.6°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#B274F2
RGBrgb(178, 116, 242)
HSLhsl(270, 83%, 70%)
HSVhsv(270, 52%, 95%)
CMYKcmyk(26.4%, 52.1%, 0%, 5.1%)
CIE-LABlab(60.22, 48.12, -54.41)
CIE-LCHlch(60.22, 72.63, 311.49°)
OKLaboklab(67.72% 0.1057 -0.153)
OKLCHoklch(67.72% 0.186 304.6)
XYZxyz(40.6290, 28.3668, 87.3221)
Luminance0.2837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B274F2 #B4F274
analogous
#7475F2 #B274F2 #F174F2
triadic
#B274F2 #F2B274 #74F2B2
tetradic
#B274F2 #F27475 #B4F274 #74F2F1
square
#B274F2 #F27475 #B4F274 #74F2F1
split-complementary
#B274F2 #F2F174 #75F274
monochromatic
#7414D7 #933CED #B274F2 #D1ACF7 #EFE3FC

Accessibility & contrast

On white

3.15
#B274F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#B274F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #B274F2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B274F2#FFFFFF#000000##000000
##B274F21.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#5E91EF
Tritanopia (blue-blind)
#A78BA8
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #b274f2;
/* rgb */ color: rgb(178, 116, 242);
/* oklch */ color: oklch(67.7% 0.186 304.6);
Tailwind
colors: {
  custom: {
    50: '#cc9ef7',
    500: '#b274f2',
    950: '#000000',
  },
}
SCSS
$custom: #b274f2;
$custom-light: #cc9ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#b274f2",
  "rgb": {
    "r": 178,
    "g": 116,
    "b": 242
  },
  "hsl": {
    "h": 269.524,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67715,
    "c": 0.18599,
    "h": 304.6
  },
  "luminance": 0.28367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B274F2

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

Preview Lab → · Contrast checker → · Palette generator →

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