#6B7917#6B7917

#6B7917 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 54.6% C 0.118 H 117.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#6B7917
RGBrgb(107, 121, 23)
HSLhsl(69, 68%, 28%)
HSVhsv(69, 81%, 47%)
CMYKcmyk(11.6%, 0%, 81%, 52.5%)
CIE-LABlab(48.09, -18.25, 47.65)
CIE-LCHlch(48.09, 51.03, 110.96°)
OKLaboklab(54.62% -0.055 0.1043)
OKLCHoklch(54.62% 0.118 117.8)
XYZxyz(13.0558, 16.8625, 3.3775)
Luminance0.1686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B7917 #251779
analogous
#795617 #6B7917 #3A7917
triadic
#6B7917 #176B79 #79176B
tetradic
#6B7917 #177956 #251779 #79173A
square
#6B7917 #177956 #251779 #79173A
split-complementary
#6B7917 #173A79 #561779
monochromatic
#171A05 #3E460D #6B7917 #98AC21 #C0D832

Accessibility & contrast

On white

4.80
#6B7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#6B7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B7917
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B7917#FFFFFF#000000##FFFFFF
##6B79171.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#807320
Tritanopia (blue-blind)
#727267
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6b7917;
/* rgb */ color: rgb(107, 121, 23);
/* oklch */ color: oklch(54.6% 0.118 117.8);
Tailwind
colors: {
  custom: {
    50: '#989f5e',
    500: '#6b7917',
    950: '#000000',
  },
}
SCSS
$custom: #6b7917;
$custom-light: #989f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#6b7917",
  "rgb": {
    "r": 107,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 68.571,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54624,
    "c": 0.11792,
    "h": 117.8
  },
  "luminance": 0.16862
}

Semantic roles & 50–950 ramp

primary
#6B7917
secondary
#4E3EAE
accent
#3DEB56
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B7917

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

Preview Lab → · Contrast checker → · Palette generator →

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