#6A781A#6A781A

#6A781A is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.3% C 0.115 H 118.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#6A781A
RGBrgb(106, 120, 26)
HSLhsl(69, 64%, 29%)
HSVhsv(69, 78%, 47%)
CMYKcmyk(11.7%, 0%, 78.3%, 52.9%)
CIE-LABlab(47.72, -18.04, 46.27)
CIE-LCHlch(47.72, 49.66, 111.30°)
OKLaboklab(54.31% -0.0541 0.1019)
OKLCHoklch(54.31% 0.115 118)
XYZxyz(12.8471, 16.5718, 3.4990)
Luminance0.1657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A781A #281A78
analogous
#78571A #6A781A #3B781A
triadic
#6A781A #1A6A78 #781A6A
tetradic
#6A781A #1A7857 #281A78 #781A3B
square
#6A781A #1A7857 #281A78 #781A3B
split-complementary
#6A781A #1A3B78 #571A78
monochromatic
#161905 #3E460F #6A781A #96AA25 #BDD438

Accessibility & contrast

On white

4.87
#6A781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#6A781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A781A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A781A#FFFFFF#000000##FFFFFF
##6A781A1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807104
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#717166
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6a781a;
/* rgb */ color: rgb(106, 120, 26);
/* oklch */ color: oklch(54.3% 0.115 118.0);
Tailwind
colors: {
  custom: {
    50: '#989e5f',
    500: '#6a781a',
    950: '#000000',
  },
}
SCSS
$custom: #6a781a;
$custom-light: #989e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6a781a",
  "rgb": {
    "r": 106,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 68.936,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54311,
    "c": 0.11543,
    "h": 118
  },
  "luminance": 0.16572
}

Semantic roles & 50–950 ramp

primary
#6A781A
secondary
#5141AC
accent
#40E759
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6A781A

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

Preview Lab → · Contrast checker → · Palette generator →

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