#6235AE#6235AE

#6235AE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.181 H 295.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#6235AE
RGBrgb(98, 53, 174)
HSLhsl(262, 53%, 45%)
HSVhsv(262, 70%, 68%)
CMYKcmyk(43.7%, 69.5%, 0%, 31.8%)
CIE-LABlab(34.39, 46.52, -57.40)
CIE-LCHlch(34.39, 73.89, 309.02°)
OKLaboklab(45.49% 0.0774 -0.1642)
OKLCHoklch(45.49% 0.182 295.2)
XYZxyz(13.9480, 8.1985, 40.8838)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235AE #81AE35
analogous
#3545AE #6235AE #9F35AE
triadic
#6235AE #AE6235 #35AE62
tetradic
#6235AE #AE3545 #81AE35 #35AE9F
square
#6235AE #AE3545 #81AE35 #35AE9F
split-complementary
#6235AE #AE9F35 #45AE35
monochromatic
#2D1850 #48277F #6235AE #8155CB #A484DA

Accessibility & contrast

On white

7.96
#6235AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6235AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235AE
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235AE#FFFFFF#000000##FFFFFF
##6235AE1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#4D536D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6235ae;
/* rgb */ color: rgb(98, 53, 174);
/* oklch */ color: oklch(45.5% 0.181 295.2);
Tailwind
colors: {
  custom: {
    50: '#9570c7',
    500: '#6235ae',
    950: '#000000',
  },
}
SCSS
$custom: #6235ae;
$custom-light: #9570c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6235ae",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 174
  },
  "hsl": {
    "h": 262.314,
    "s": 53.304,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4549,
    "c": 0.1815,
    "h": 295.2
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#6235AE
secondary
#A9C37C
accent
#DD4BA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235AE

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

Preview Lab → · Contrast checker → · Palette generator →

#6235AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva