#6234B2#6234B2

#6234B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.187 H 294.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#6234B2
RGBrgb(98, 52, 178)
HSLhsl(262, 55%, 45%)
HSVhsv(262, 71%, 70%)
CMYKcmyk(44.9%, 70.8%, 0%, 30.2%)
CIE-LABlab(34.53, 48.11, -59.56)
CIE-LCHlch(34.53, 76.56, 308.93°)
OKLaboklab(45.69% 0.0777 -0.1705)
OKLCHoklch(45.69% 0.187 294.5)
XYZxyz(14.2987, 8.2666, 42.9531)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6234B2 #84B234
analogous
#3445B2 #6234B2 #A134B2
triadic
#6234B2 #B26234 #34B262
tetradic
#6234B2 #B23445 #84B234 #34B2A1
square
#6234B2 #B23445 #84B234 #34B2A1
split-complementary
#6234B2 #B2A134 #45B234
monochromatic
#2E1853 #482683 #6234B2 #8156CE #A585DB

Accessibility & contrast

On white

7.91
#6234B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6234B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6234B2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6234B2#FFFFFF#000000##FFFFFF
##6234B21.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#4B546F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6234b2;
/* rgb */ color: rgb(98, 52, 178);
/* oklch */ color: oklch(45.7% 0.187 294.5);
Tailwind
colors: {
  custom: {
    50: '#966fca',
    500: '#6234b2',
    950: '#000000',
  },
}
SCSS
$custom: #6234b2;
$custom-light: #966fca;
$custom-dark: #000000;
JSON
{
  "hex": "#6234b2",
  "rgb": {
    "r": 98,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 261.905,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4569,
    "c": 0.18735,
    "h": 294.5
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#6234B2
secondary
#ABC57D
accent
#DE4AA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6234B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6234B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva