#126F1F#126F1F

#126F1F is a mid, vivid green. Relative luminance 0.116; OKLCH L 47.4% C 0.142 H 144.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#126F1F
RGBrgb(18, 111, 31)
HSLhsl(128, 72%, 25%)
HSVhsv(128, 84%, 44%)
CMYKcmyk(83.8%, 0%, 72.1%, 56.5%)
CIE-LABlab(40.57, -42.75, 35.75)
CIE-LCHlch(40.57, 55.73, 140.10°)
OKLaboklab(47.36% -0.1154 0.0821)
OKLCHoklch(47.36% 0.142 144.6)
XYZxyz(6.1808, 11.5957, 3.2085)
Luminance0.1160 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126F1F #6F1262
analogous
#336F12 #126F1F #126F4D
triadic
#126F1F #1F126F #6F1F12
tetradic
#126F1F #12336F #6F1262 #6F4D12
square
#126F1F #12336F #6F1262 #6F4D12
split-complementary
#126F1F #4D126F #6F1233
monochromatic
#041A07 #093A10 #126F1F #1BA42E #23D83C

Accessibility & contrast

On white

6.33
#126F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#126F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126F1F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126F1F#FFFFFF#000000##FFFFFF
##126F1F1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716413
Deuteranopia (green-blind)
#675D27
Tritanopia (blue-blind)
#006C5F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #126f1f;
/* rgb */ color: rgb(18, 111, 31);
/* oklch */ color: oklch(47.4% 0.142 144.6);
Tailwind
colors: {
  custom: {
    50: '#63995f',
    500: '#126f1f',
    950: '#000000',
  },
}
SCSS
$custom: #126f1f;
$custom-light: #63995f;
$custom-dark: #000000;
JSON
{
  "hex": "#126f1f",
  "rgb": {
    "r": 18,
    "g": 111,
    "b": 31
  },
  "hsl": {
    "h": 128.387,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.14166,
    "h": 144.6
  },
  "luminance": 0.11596
}

Semantic roles & 50–950 ramp

primary
#126F1F
secondary
#A63797
accent
#39D5EF
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#060E05
muted
#7A7E79

Preview Lab

Preview with #126F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#126F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva