#6234CF#6234CF

#6234CF is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.220 H 288.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6234CF
RGBrgb(98, 52, 207)
HSLhsl(258, 62%, 51%)
HSVhsv(258, 75%, 81%)
CMYKcmyk(52.7%, 74.9%, 0%, 18.8%)
CIE-LABlab(37.03, 55.98, -72.47)
CIE-LCHlch(37.03, 91.58, 307.68°)
OKLaboklab(48.23% 0.0711 -0.2084)
OKLCHoklch(48.23% 0.22 288.8)
XYZxyz(17.5242, 9.5568, 59.9407)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6234CF #A1CF34
analogous
#3454CF #6234CF #AF34CF
triadic
#6234CF #CF6234 #34CF62
tetradic
#6234CF #CF3454 #A1CF34 #34CFAF
square
#6234CF #CF3454 #A1CF34 #34CFAF
split-complementary
#6234CF #CFAF34 #54CF34
monochromatic
#331A6E #4A26A0 #6234CF #8865DB #AF97E6

Accessibility & contrast

On white

7.21
#6234CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6234CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6234CF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6234CF#FFFFFF#000000##FFFFFF
##6234CF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#385F7F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6234cf;
/* rgb */ color: rgb(98, 52, 207);
/* oklch */ color: oklch(48.2% 0.220 288.8);
Tailwind
colors: {
  custom: {
    50: '#9970df',
    500: '#6234cf',
    950: '#000000',
  },
}
SCSS
$custom: #6234cf;
$custom-light: #9970df;
$custom-dark: #000000;
JSON
{
  "hex": "#6234cf",
  "rgb": {
    "r": 98,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 257.806,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48228,
    "c": 0.22018,
    "h": 288.8
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#6234CF
secondary
#BDD28D
accent
#E543B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6234CF

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

Preview Lab → · Contrast checker → · Palette generator →

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