#6234C4#6234C4

#6234C4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.208 H 290.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6234C4
RGBrgb(98, 52, 196)
HSLhsl(259, 58%, 49%)
HSVhsv(259, 73%, 77%)
CMYKcmyk(50%, 73.5%, 0%, 23.1%)
CIE-LABlab(36.06, 52.99, -67.68)
CIE-LCHlch(36.06, 85.95, 308.06°)
OKLaboklab(47.24% 0.0738 -0.1943)
OKLCHoklch(47.24% 0.208 290.8)
XYZxyz(16.2260, 9.0375, 53.1033)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6234C4 #96C434
analogous
#344EC4 #6234C4 #AA34C4
triadic
#6234C4 #C46234 #34C462
tetradic
#6234C4 #C4344E #96C434 #34C4AA
square
#6234C4 #C4344E #96C434 #34C4AA
split-complementary
#6234C4 #C4AA34 #4EC434
monochromatic
#321A63 #4A2794 #6234C4 #8660D5 #AB91E2

Accessibility & contrast

On white

7.48
#6234C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6234C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6234C4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6234C4#FFFFFF#000000##FFFFFF
##6234C41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#405B79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6234c4;
/* rgb */ color: rgb(98, 52, 196);
/* oklch */ color: oklch(47.2% 0.208 290.8);
Tailwind
colors: {
  custom: {
    50: '#9870d7',
    500: '#6234c4',
    950: '#000000',
  },
}
SCSS
$custom: #6234c4;
$custom-light: #9870d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6234c4",
  "rgb": {
    "r": 98,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 259.167,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4724,
    "c": 0.20787,
    "h": 290.8
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#6234C4
secondary
#B6CC87
accent
#E147B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6234C4

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

Preview Lab → · Contrast checker → · Palette generator →

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