#6D7917#6D7917

#6D7917 is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 54.8% C 0.117 H 116.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#6D7917
RGBrgb(109, 121, 23)
HSLhsl(67, 68%, 28%)
HSVhsv(67, 81%, 47%)
CMYKcmyk(9.9%, 0%, 81%, 52.5%)
CIE-LABlab(48.24, -17.34, 47.86)
CIE-LCHlch(48.24, 50.90, 109.92°)
OKLaboklab(54.79% -0.0527 0.1046)
OKLCHoklch(54.79% 0.117 116.7)
XYZxyz(13.2991, 16.9880, 3.3889)
Luminance0.1699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D7917 #231779
analogous
#795417 #6D7917 #3C7917
triadic
#6D7917 #176D79 #79176D
tetradic
#6D7917 #177954 #231779 #79173C
square
#6D7917 #177954 #231779 #79173C
split-complementary
#6D7917 #173C79 #541779
monochromatic
#171A05 #3F460D #6D7917 #9BAC21 #C4D832

Accessibility & contrast

On white

4.78
#6D7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#6D7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D7917
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D7917#FFFFFF#000000##FFFFFF
##6D79171.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#817320
Tritanopia (blue-blind)
#747267
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #6d7917;
/* rgb */ color: rgb(109, 121, 23);
/* oklch */ color: oklch(54.8% 0.117 116.7);
Tailwind
colors: {
  custom: {
    50: '#9a9f5e',
    500: '#6d7917',
    950: '#000000',
  },
}
SCSS
$custom: #6d7917;
$custom-light: #9a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#6d7917",
  "rgb": {
    "r": 109,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 67.347,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54791,
    "c": 0.11713,
    "h": 116.7
  },
  "luminance": 0.16988
}

Semantic roles & 50–950 ramp

primary
#6D7917
secondary
#4B3EAE
accent
#3DEB52
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6D7917

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

Preview Lab → · Contrast checker → · Palette generator →

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