#6A791B#6A791B

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

Color values

HEX#6A791B
RGBrgb(106, 121, 27)
HSLhsl(70, 64%, 29%)
HSVhsv(70, 78%, 47%)
CMYKcmyk(12.4%, 0%, 77.7%, 52.5%)
CIE-LABlab(48.03, -18.51, 46.21)
CIE-LCHlch(48.03, 49.78, 111.83°)
OKLaboklab(54.57% -0.0554 0.102)
OKLCHoklch(54.57% 0.116 118.5)
XYZxyz(12.9793, 16.8182, 3.5992)
Luminance0.1682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A791B #2A1B79
analogous
#79591B #6A791B #3B791B
triadic
#6A791B #1B6A79 #791B6A
tetradic
#6A791B #1B7959 #2A1B79 #791B3B
square
#6A791B #1B7959 #2A1B79 #791B3B
split-complementary
#6A791B #1B3B79 #591B79
monochromatic
#161906 #3E4710 #6A791B #96AB26 #BBD33B

Accessibility & contrast

On white

4.81
#6A791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6A791B
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A791B#FFFFFF#000000##FFFFFF
##6A791B1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a791b;
/* rgb */ color: rgb(106, 121, 27);
/* oklch */ color: oklch(54.6% 0.116 118.5);
Tailwind
colors: {
  custom: {
    50: '#989f5f',
    500: '#6a791b',
    950: '#000000',
  },
}
SCSS
$custom: #6a791b;
$custom-light: #989f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6a791b",
  "rgb": {
    "r": 106,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 69.574,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54566,
    "c": 0.11606,
    "h": 118.5
  },
  "luminance": 0.16818
}

Semantic roles & 50–950 ramp

primary
#6A791B
secondary
#5443AD
accent
#41E75C
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6A791B

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

Preview Lab → · Contrast checker → · Palette generator →

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