#6A8A21#6A8A21

#6A8A21 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.9% C 0.134 H 125.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#6A8A21
RGBrgb(106, 138, 33)
HSLhsl(78, 61%, 34%)
HSVhsv(78, 76%, 54%)
CMYKcmyk(23.2%, 0%, 76.1%, 45.9%)
CIE-LABlab(53.33, -26.81, 49.12)
CIE-LCHlch(53.33, 55.96, 118.63°)
OKLaboklab(58.86% -0.0776 0.1092)
OKLCHoklch(58.86% 0.134 125.4)
XYZxyz(15.3070, 21.3507, 4.7532)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A8A21 #41218A
analogous
#8A7521 #6A8A21 #358A21
triadic
#6A8A21 #216A8A #8A216A
tetradic
#6A8A21 #218A75 #41218A #8A2135
square
#6A8A21 #218A75 #41218A #8A2135
split-complementary
#6A8A21 #21358A #75218A
monochromatic
#1E2709 #445915 #6A8A21 #90BB2D #ADD550

Accessibility & contrast

On white

3.98
#6A8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#6A8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6A8A21
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A8A21#FFFFFF#000000##000000
##6A8A211.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#92810B
Deuteranopia (green-blind)
#8D7F2B
Tritanopia (blue-blind)
#6F8376
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #6a8a21;
/* rgb */ color: rgb(106, 138, 33);
/* oklch */ color: oklch(58.9% 0.134 125.4);
Tailwind
colors: {
  custom: {
    50: '#98ac65',
    500: '#6a8a21',
    950: '#000000',
  },
}
SCSS
$custom: #6a8a21;
$custom-light: #98ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#6a8a21",
  "rgb": {
    "r": 106,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 78.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58858,
    "c": 0.13395,
    "h": 125.4
  },
  "luminance": 0.21351
}

Semantic roles & 50–950 ramp

primary
#6A8A21
secondary
#6F4EB9
accent
#43E574
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6A8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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