#6A238F#6A238F

#6A238F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.171 H 311.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6A238F
RGBrgb(106, 35, 143)
HSLhsl(279, 61%, 35%)
HSVhsv(279, 76%, 56%)
CMYKcmyk(25.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(30.03, 48.89, -45.63)
CIE-LCHlch(30.03, 66.88, 316.98°)
OKLaboklab(41.87% 0.1127 -0.1292)
OKLCHoklch(41.87% 0.171 311.1)
XYZxyz(11.5019, 6.2497, 26.5817)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A238F #488F23
analogous
#34238F #6A238F #8F237E
triadic
#6A238F #8F6A23 #238F6A
tetradic
#6A238F #8F3423 #488F23 #237E8F
square
#6A238F #8F3423 #488F23 #237E8F
split-complementary
#6A238F #7E8F23 #238F34
monochromatic
#210B2D #46175E #6A238F #8E2FC0 #AA57D6

Accessibility & contrast

On white

9.33
#6A238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6A238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A238F
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A238F#FFFFFF#000000##FFFFFF
##6A238F1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#0F488D
Tritanopia (blue-blind)
#653C57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a238f;
/* rgb */ color: rgb(106, 35, 143);
/* oklch */ color: oklch(41.9% 0.171 311.1);
Tailwind
colors: {
  custom: {
    50: '#9965b0',
    500: '#6a238f',
    950: '#000000',
  },
}
SCSS
$custom: #6a238f;
$custom-light: #9965b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a238f",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 279.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41866,
    "c": 0.17139,
    "h": 311.1
  },
  "luminance": 0.06249
}

Semantic roles & 50–950 ramp

primary
#6A238F
secondary
#77BA54
accent
#E4447B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A238F

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

Preview Lab → · Contrast checker → · Palette generator →

#6A238F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva