#6D791F#6D791F

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

Color values

HEX#6D791F
RGBrgb(109, 121, 31)
HSLhsl(68, 59%, 30%)
HSVhsv(68, 74%, 47%)
CMYKcmyk(9.9%, 0%, 74.4%, 52.5%)
CIE-LABlab(48.29, -16.94, 45.05)
CIE-LCHlch(48.29, 48.13, 110.61°)
OKLaboklab(54.84% -0.0508 0.1002)
OKLCHoklch(54.84% 0.112 116.9)
XYZxyz(13.3917, 17.0251, 3.8768)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D791F #2B1F79
analogous
#79581F #6D791F #40791F
triadic
#6D791F #1F6D79 #791F6D
tetradic
#6D791F #1F7958 #2B1F79 #791F40
square
#6D791F #1F7958 #2B1F79 #791F40
split-complementary
#6D791F #1F4079 #581F79
monochromatic
#161806 #414813 #6D791F #99AA2B #BCCF43

Accessibility & contrast

On white

4.77
#6D791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6D791F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D791F#FFFFFF#000000##FFFFFF
##6D791F1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82720F
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#747268
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #6d791f;
/* rgb */ color: rgb(109, 121, 31);
/* oklch */ color: oklch(54.8% 0.112 116.9);
Tailwind
colors: {
  custom: {
    50: '#9a9f61',
    500: '#6d791f',
    950: '#000000',
  },
}
SCSS
$custom: #6d791f;
$custom-light: #9a9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#6d791f",
  "rgb": {
    "r": 109,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 68,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54843,
    "c": 0.11235,
    "h": 116.9
  },
  "luminance": 0.17025
}

Semantic roles & 50–950 ramp

primary
#6D791F
secondary
#5547AC
accent
#45E25A
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E05
muted
#7E7E7A

Preview Lab

Preview with #6D791F

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

Preview Lab → · Contrast checker → · Palette generator →

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