#126F2A#126F2A

#126F2A is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.5% C 0.133 H 146.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#126F2A
RGBrgb(18, 111, 42)
HSLhsl(135, 72%, 25%)
HSVhsv(135, 84%, 44%)
CMYKcmyk(83.8%, 0%, 62.2%, 56.5%)
CIE-LABlab(40.68, -41.40, 30.65)
CIE-LCHlch(40.68, 51.51, 143.49°)
OKLaboklab(47.49% -0.1113 0.0724)
OKLCHoklch(47.49% 0.133 146.9)
XYZxyz(6.3513, 11.6639, 4.1067)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126F2A #6F1257
analogous
#286F12 #126F2A #126F58
triadic
#126F2A #2A126F #6F2A12
tetradic
#126F2A #12286F #6F1257 #6F5812
square
#126F2A #12286F #6F1257 #6F5812
split-complementary
#126F2A #58126F #6F1228
monochromatic
#041A0A #093A16 #126F2A #1BA43E #23D852

Accessibility & contrast

On white

6.30
#126F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#126F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126F2A
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126F2A#FFFFFF#000000##FFFFFF
##126F2A1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706423
Deuteranopia (green-blind)
#665D30
Tritanopia (blue-blind)
#006C60
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #126f2a;
/* rgb */ color: rgb(18, 111, 42);
/* oklch */ color: oklch(47.5% 0.133 146.9);
Tailwind
colors: {
  custom: {
    50: '#639966',
    500: '#126f2a',
    950: '#000000',
  },
}
SCSS
$custom: #126f2a;
$custom-light: #639966;
$custom-dark: #000000;
JSON
{
  "hex": "#126f2a",
  "rgb": {
    "r": 18,
    "g": 111,
    "b": 42
  },
  "hsl": {
    "h": 135.484,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.47486,
    "c": 0.13281,
    "h": 146.9
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

primary
#126F2A
secondary
#A63789
accent
#39C0EF
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#060E06
muted
#7A7E7A

Preview Lab

Preview with #126F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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