#6A7F18#6A7F18

#6A7F18 is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 56.0% C 0.125 H 121.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#6A7F18
RGBrgb(106, 127, 24)
HSLhsl(72, 68%, 30%)
HSVhsv(72, 81%, 50%)
CMYKcmyk(16.5%, 0%, 81.1%, 50.2%)
CIE-LABlab(49.87, -21.77, 48.92)
CIE-LCHlch(49.87, 53.55, 113.99°)
OKLaboklab(56.04% -0.0646 0.1072)
OKLCHoklch(56.04% 0.125 121.1)
XYZxyz(13.6983, 18.3089, 3.6763)
Luminance0.1831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7F18 #2D187F
analogous
#7F6118 #6A7F18 #377F18
triadic
#6A7F18 #186A7F #7F186A
tetradic
#6A7F18 #187F61 #2D187F #7F1837
square
#6A7F18 #187F61 #2D187F #7F1837
split-complementary
#6A7F18 #18377F #61187F
monochromatic
#151A05 #3F4C0E #6A7F18 #95B222 #B8D938

Accessibility & contrast

On white

4.50
#6A7F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#6A7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6A7F18
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7F18#FFFFFF#000000##000000
##6A7F181.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#70786C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #6a7f18;
/* rgb */ color: rgb(106, 127, 24);
/* oklch */ color: oklch(56.0% 0.125 121.1);
Tailwind
colors: {
  custom: {
    50: '#98a45f',
    500: '#6a7f18',
    950: '#000000',
  },
}
SCSS
$custom: #6a7f18;
$custom-light: #98a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7f18",
  "rgb": {
    "r": 106,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 72.233,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56042,
    "c": 0.12514,
    "h": 121.1
  },
  "luminance": 0.18309
}

Semantic roles & 50–950 ramp

primary
#6A7F18
secondary
#573FB3
accent
#3DEB60
background
#F9FAF5
surface
#F2F4EA
border
#CCCEC6
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #6A7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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