#6A6217#6A6217

#6A6217 is a mid, moderate yellow. Relative luminance 0.119; OKLCH L 48.9% C 0.093 H 103.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6A6217
RGBrgb(106, 98, 23)
HSLhsl(54, 64%, 25%)
HSVhsv(54, 78%, 42%)
CMYKcmyk(0%, 7.5%, 78.3%, 58.4%)
CIE-LABlab(41.00, -6.01, 41.06)
CIE-LCHlch(41.00, 41.49, 98.33°)
OKLaboklab(48.93% -0.0209 0.0903)
OKLCHoklch(48.93% 0.093 103.1)
XYZxyz(10.4667, 11.8618, 2.5487)
Luminance0.1186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A6217 #171F6A
analogous
#6A3817 #6A6217 #486A17
triadic
#6A6217 #176A62 #62176A
tetradic
#6A6217 #176A38 #171F6A #6A1748
square
#6A6217 #176A38 #171F6A #6A1748
split-complementary
#6A6217 #17486A #38176A
monochromatic
#191705 #38340C #6A6217 #9C9022 #CFBF2D

Accessibility & contrast

On white

6.23
#6A6217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6A6217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A6217
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A6217#FFFFFF#000000##FFFFFF
##6A62171.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F08
Deuteranopia (green-blind)
#6E621C
Tritanopia (blue-blind)
#735B54
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6a6217;
/* rgb */ color: rgb(106, 98, 23);
/* oklch */ color: oklch(48.9% 0.093 103.1);
Tailwind
colors: {
  custom: {
    50: '#988e5a',
    500: '#6a6217',
    950: '#000000',
  },
}
SCSS
$custom: #6a6217;
$custom-light: #988e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a6217",
  "rgb": {
    "r": 106,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 54.217,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48929,
    "c": 0.09271,
    "h": 103.1
  },
  "luminance": 0.11861
}

Semantic roles & 50–950 ramp

primary
#6A6217
secondary
#3D46A0
accent
#51E740
background
#F9F8F5
surface
#F2F0E9
border
#CCCBC5
text
#0E0C04
muted
#7E7D79

Preview Lab

Preview with #6A6217

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

Preview Lab → · Contrast checker → · Palette generator →

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