#6838CB#6838CB

#6838CB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.9% C 0.211 H 291.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6838CB
RGBrgb(104, 56, 203)
HSLhsl(260, 59%, 51%)
HSVhsv(260, 72%, 80%)
CMYKcmyk(48.8%, 72.4%, 0%, 20.4%)
CIE-LABlab(37.99, 53.88, -68.56)
CIE-LCHlch(37.99, 87.20, 308.16°)
OKLaboklab(48.94% 0.0776 -0.1967)
OKLCHoklch(48.94% 0.211 291.5)
XYZxyz(17.8995, 10.0825, 57.4913)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838CB #9BCB38
analogous
#3851CB #6838CB #B238CB
triadic
#6838CB #CB6838 #38CB68
tetradic
#6838CB #CB3851 #9BCB38 #38CBB2
square
#6838CB #CB3851 #9BCB38 #38CBB2
split-complementary
#6838CB #CBB238 #51CB38
monochromatic
#361C6C #4F299D #6838CB #8D69D8 #B299E4

Accessibility & contrast

On white

6.96
#6838CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6838CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6838CB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838CB#FFFFFF#000000##FFFFFF
##6838CB1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#485F7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6838cb;
/* rgb */ color: rgb(104, 56, 203);
/* oklch */ color: oklch(48.9% 0.211 291.5);
Tailwind
colors: {
  custom: {
    50: '#9c73dc',
    500: '#6838cb',
    950: '#000000',
  },
}
SCSS
$custom: #6838cb;
$custom-light: #9c73dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6838cb",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 259.592,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4894,
    "c": 0.21148,
    "h": 291.5
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#6838CB
secondary
#BBD08F
accent
#E246AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6838CB

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

Preview Lab → · Contrast checker → · Palette generator →

#6838CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva