#6A7F12#6A7F12

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

Color values

HEX#6A7F12
RGBrgb(106, 127, 18)
HSLhsl(72, 75%, 28%)
HSVhsv(72, 86%, 50%)
CMYKcmyk(16.5%, 0%, 85.8%, 50.2%)
CIE-LABlab(49.84, -22.01, 50.65)
CIE-LCHlch(49.84, 55.22, 113.49°)
OKLaboklab(56.01% -0.0657 0.1098)
OKLCHoklch(56.01% 0.128 120.9)
XYZxyz(13.6427, 18.2866, 3.3831)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7F12 #27127F
analogous
#7F5D12 #6A7F12 #337F12
triadic
#6A7F12 #126A7F #7F126A
tetradic
#6A7F12 #127F5D #27127F #7F1233
square
#6A7F12 #127F5D #27127F #7F1233
split-complementary
#6A7F12 #12337F #5D127F
monochromatic
#161B04 #3D490A #6A7F12 #97B51A #BEE12B

Accessibility & contrast

On white

4.51
#6A7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A7F12#FFFFFF#000000##000000
##6A7F121.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#85771E
Tritanopia (blue-blind)
#71786C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #6a7f12;
/* rgb */ color: rgb(106, 127, 18);
/* oklch */ color: oklch(56.0% 0.128 120.9);
Tailwind
colors: {
  custom: {
    50: '#98a45d',
    500: '#6a7f12',
    950: '#000000',
  },
}
SCSS
$custom: #6a7f12;
$custom-light: #98a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7f12",
  "rgb": {
    "r": 106,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 71.56,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56012,
    "c": 0.12793,
    "h": 120.9
  },
  "luminance": 0.18287
}

Semantic roles & 50–950 ramp

primary
#6A7F12
secondary
#5038B5
accent
#36F25A
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #6A7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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