#6235AD#6235AD

#6235AD is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.180 H 295.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#6235AD
RGBrgb(98, 53, 173)
HSLhsl(263, 53%, 44%)
HSVhsv(263, 69%, 68%)
CMYKcmyk(43.4%, 69.4%, 0%, 32.2%)
CIE-LABlab(34.31, 46.25, -56.94)
CIE-LCHlch(34.31, 73.35, 309.09°)
OKLaboklab(45.41% 0.0776 -0.1628)
OKLCHoklch(45.41% 0.18 295.5)
XYZxyz(13.8509, 8.1597, 40.3723)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235AD #80AD35
analogous
#3544AD #6235AD #9E35AD
triadic
#6235AD #AD6235 #35AD62
tetradic
#6235AD #AD3544 #80AD35 #35AD9E
square
#6235AD #AD3544 #80AD35 #35AD9E
split-complementary
#6235AD #AD9E35 #44AD35
monochromatic
#2D184F #47277E #6235AD #8154CB #A383D9

Accessibility & contrast

On white

7.98
#6235AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6235AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235AD
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235AD#FFFFFF#000000##FFFFFF
##6235AD1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#4E526D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6235ad;
/* rgb */ color: rgb(98, 53, 173);
/* oklch */ color: oklch(45.4% 0.180 295.5);
Tailwind
colors: {
  custom: {
    50: '#9570c6',
    500: '#6235ad',
    950: '#000000',
  },
}
SCSS
$custom: #6235ad;
$custom-light: #9570c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6235ad",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 173
  },
  "hsl": {
    "h": 262.5,
    "s": 53.097,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45408,
    "c": 0.18033,
    "h": 295.5
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#6235AD
secondary
#A8C37B
accent
#DD4BA6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235AD

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

Preview Lab → · Contrast checker → · Palette generator →

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