#6234CD#6234CD

#6234CD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.218 H 289.2°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#6234CD
RGBrgb(98, 52, 205)
HSLhsl(258, 60%, 50%)
HSVhsv(258, 75%, 80%)
CMYKcmyk(52.2%, 74.6%, 0%, 19.6%)
CIE-LABlab(36.85, 55.44, -71.61)
CIE-LCHlch(36.85, 90.56, 307.74°)
OKLaboklab(48.05% 0.0716 -0.2058)
OKLCHoklch(48.05% 0.218 289.2)
XYZxyz(17.2812, 9.4596, 58.6611)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6234CD #9FCD34
analogous
#3453CD #6234CD #AE34CD
triadic
#6234CD #CD6234 #34CD62
tetradic
#6234CD #CD3453 #9FCD34 #34CDAE
square
#6234CD #CD3453 #9FCD34 #34CDAE
split-complementary
#6234CD #CDAE34 #53CD34
monochromatic
#331B6C #4A279D #6234CD #8865D9 #AE96E5

Accessibility & contrast

On white

7.26
#6234CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#6234CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6234CD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6234CD#FFFFFF#000000##FFFFFF
##6234CD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#395E7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6234cd;
/* rgb */ color: rgb(98, 52, 205);
/* oklch */ color: oklch(48.0% 0.218 289.2);
Tailwind
colors: {
  custom: {
    50: '#9970dd',
    500: '#6234cd',
    950: '#000000',
  },
}
SCSS
$custom: #6234cd;
$custom-light: #9970dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6234cd",
  "rgb": {
    "r": 98,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 258.039,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48046,
    "c": 0.21796,
    "h": 289.2
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#6234CD
secondary
#BCD18C
accent
#E444B4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6234CD

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

Preview Lab → · Contrast checker → · Palette generator →

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