#6B791B#6B791B

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

Color values

HEX#6B791B
RGBrgb(107, 121, 27)
HSLhsl(69, 64%, 29%)
HSVhsv(69, 78%, 47%)
CMYKcmyk(11.6%, 0%, 77.7%, 52.5%)
CIE-LABlab(48.11, -18.06, 46.31)
CIE-LCHlch(48.11, 49.71, 111.31°)
OKLaboklab(54.65% -0.0542 0.1022)
OKLCHoklch(54.65% 0.116 117.9)
XYZxyz(13.0989, 16.8798, 3.6048)
Luminance0.1688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B791B #291B79
analogous
#79581B #6B791B #3C791B
triadic
#6B791B #1B6B79 #791B6B
tetradic
#6B791B #1B7958 #291B79 #791B3C
square
#6B791B #1B7958 #291B79 #791B3C
split-complementary
#6B791B #1B3C79 #581B79
monochromatic
#161906 #3F4710 #6B791B #97AB26 #BDD33B

Accessibility & contrast

On white

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

On black

4.38
#6B791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6B791B#FFFFFF#000000##FFFFFF
##6B791B1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b791b;
/* rgb */ color: rgb(107, 121, 27);
/* oklch */ color: oklch(54.6% 0.116 117.9);
Tailwind
colors: {
  custom: {
    50: '#989f5f',
    500: '#6b791b',
    950: '#000000',
  },
}
SCSS
$custom: #6b791b;
$custom-light: #989f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6b791b",
  "rgb": {
    "r": 107,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 68.936,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54648,
    "c": 0.11566,
    "h": 117.9
  },
  "luminance": 0.1688
}

Semantic roles & 50–950 ramp

primary
#6B791B
secondary
#5243AD
accent
#41E75A
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B791B

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

Preview Lab → · Contrast checker → · Palette generator →

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