#6A7917#6A7917

#6A7917 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.5% C 0.118 H 118.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#6A7917
RGBrgb(106, 121, 23)
HSLhsl(69, 68%, 28%)
HSVhsv(69, 81%, 47%)
CMYKcmyk(12.4%, 0%, 81%, 52.5%)
CIE-LABlab(48.01, -18.70, 47.55)
CIE-LCHlch(48.01, 51.10, 111.47°)
OKLaboklab(54.54% -0.0562 0.1041)
OKLCHoklch(54.54% 0.118 118.4)
XYZxyz(12.9362, 16.8009, 3.3719)
Luminance0.1680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7917 #261779
analogous
#795717 #6A7917 #397917
triadic
#6A7917 #176A79 #79176A
tetradic
#6A7917 #177957 #261779 #791739
square
#6A7917 #177957 #261779 #791739
split-complementary
#6A7917 #173979 #571779
monochromatic
#171A05 #3D460D #6A7917 #97AC21 #BFD832

Accessibility & contrast

On white

4.82
#6A7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#6A7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A7917
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7917#FFFFFF#000000##FFFFFF
##6A79171.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a7917;
/* rgb */ color: rgb(106, 121, 23);
/* oklch */ color: oklch(54.5% 0.118 118.4);
Tailwind
colors: {
  custom: {
    50: '#989f5e',
    500: '#6a7917',
    950: '#000000',
  },
}
SCSS
$custom: #6a7917;
$custom-light: #989f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7917",
  "rgb": {
    "r": 106,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 69.184,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54541,
    "c": 0.11832,
    "h": 118.4
  },
  "luminance": 0.16801
}

Semantic roles & 50–950 ramp

primary
#6A7917
secondary
#4F3EAE
accent
#3DEB58
background
#F9F9F5
surface
#F2F2E9
border
#CCCCC5
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6A7917

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

Preview Lab → · Contrast checker → · Palette generator →

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