#6B6217#6B6217

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

Color values

HEX#6B6217
RGBrgb(107, 98, 23)
HSLhsl(54, 65%, 25%)
HSVhsv(54, 79%, 42%)
CMYKcmyk(0%, 8.4%, 78.5%, 58%)
CIE-LABlab(41.09, -5.53, 41.19)
CIE-LCHlch(41.09, 41.55, 97.65°)
OKLaboklab(49.03% -0.0196 0.0905)
OKLCHoklch(49.03% 0.093 102.2)
XYZxyz(10.5862, 11.9235, 2.5543)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B6217 #17206B
analogous
#6B3817 #6B6217 #4A6B17
triadic
#6B6217 #176B62 #62176B
tetradic
#6B6217 #176B38 #17206B #6B174A
square
#6B6217 #176B38 #17206B #6B174A
split-complementary
#6B6217 #174A6B #38176B
monochromatic
#191705 #39340C #6B6217 #9D9022 #D0BE2D

Accessibility & contrast

On white

6.20
#6B6217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6B6217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B6217
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B6217#FFFFFF#000000##FFFFFF
##6B62171.006.203.386.20
#FFFFFF6.201.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F08
Deuteranopia (green-blind)
#6E631C
Tritanopia (blue-blind)
#745A54
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6b6217;
/* rgb */ color: rgb(107, 98, 23);
/* oklch */ color: oklch(49.0% 0.093 102.2);
Tailwind
colors: {
  custom: {
    50: '#988e5a',
    500: '#6b6217',
    950: '#000000',
  },
}
SCSS
$custom: #6b6217;
$custom-light: #988e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#6b6217",
  "rgb": {
    "r": 107,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 53.571,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.49031,
    "c": 0.09264,
    "h": 102.2
  },
  "luminance": 0.11923
}

Semantic roles & 50–950 ramp

primary
#6B6217
secondary
#3D47A1
accent
#52E840
background
#F9F8F5
surface
#F2F0E9
border
#CCCBC5
text
#0E0C04
muted
#7E7D79

Preview Lab

Preview with #6B6217

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

Preview Lab → · Contrast checker → · Palette generator →

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