#6234AF#6234AF

#6234AF is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.184 H 295.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#6234AF
RGBrgb(98, 52, 175)
HSLhsl(262, 54%, 45%)
HSVhsv(262, 70%, 69%)
CMYKcmyk(44%, 70.3%, 0%, 31.4%)
CIE-LABlab(34.29, 47.30, -58.17)
CIE-LCHlch(34.29, 74.98, 309.12°)
OKLaboklab(45.44% 0.0782 -0.1664)
OKLCHoklch(45.44% 0.184 295.2)
XYZxyz(14.0008, 8.1475, 41.3841)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6234AF #81AF34
analogous
#3444AF #6234AF #A034AF
triadic
#6234AF #AF6234 #34AF62
tetradic
#6234AF #AF3444 #81AF34 #34AFA0
square
#6234AF #AF3444 #81AF34 #34AFA0
split-complementary
#6234AF #AFA034 #44AF34
monochromatic
#2D1851 #482680 #6234AF #8154CC #A483DA

Accessibility & contrast

On white

7.99
#6234AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6234AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6234AF
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6234AF#FFFFFF#000000##FFFFFF
##6234AF1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#4D536E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6234af;
/* rgb */ color: rgb(98, 52, 175);
/* oklch */ color: oklch(45.4% 0.184 295.2);
Tailwind
colors: {
  custom: {
    50: '#956fc8',
    500: '#6234af',
    950: '#000000',
  },
}
SCSS
$custom: #6234af;
$custom-light: #956fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#6234af",
  "rgb": {
    "r": 98,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 262.439,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4544,
    "c": 0.18389,
    "h": 295.2
  },
  "luminance": 0.08148
}

Semantic roles & 50–950 ramp

primary
#6234AF
secondary
#A9C47B
accent
#DE4AA6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6234AF

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

Preview Lab → · Contrast checker → · Palette generator →

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