#126B22#126B22

#126B22 is a mid, vivid green. Relative luminance 0.108; OKLCH L 46.2% C 0.134 H 145.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#126B22
RGBrgb(18, 107, 34)
HSLhsl(131, 71%, 25%)
HSVhsv(131, 83%, 42%)
CMYKcmyk(83.2%, 0%, 68.2%, 58%)
CIE-LABlab(39.17, -41.01, 32.87)
CIE-LCHlch(39.17, 52.55, 141.29°)
OKLaboklab(46.21% -0.1106 0.0764)
OKLCHoklch(46.21% 0.134 145.4)
XYZxyz(5.7955, 10.7588, 3.2843)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126B22 #6B125B
analogous
#2E6B12 #126B22 #126B4F
triadic
#126B22 #22126B #6B2212
tetradic
#126B22 #122E6B #6B125B #6B4F12
square
#126B22 #122E6B #6B125B #6B4F12
split-complementary
#126B22 #4F126B #6B122E
monochromatic
#041A08 #093711 #126B22 #1B9F33 #24D443

Accessibility & contrast

On white

6.66
#126B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#126B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #126B22
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##126B22#FFFFFF#000000##FFFFFF
##126B221.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6019
Deuteranopia (green-blind)
#635A29
Tritanopia (blue-blind)
#00685C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #126b22;
/* rgb */ color: rgb(18, 107, 34);
/* oklch */ color: oklch(46.2% 0.134 145.4);
Tailwind
colors: {
  custom: {
    50: '#629661',
    500: '#126b22',
    950: '#000000',
  },
}
SCSS
$custom: #126b22;
$custom-light: #629661;
$custom-dark: #000000;
JSON
{
  "hex": "#126b22",
  "rgb": {
    "r": 18,
    "g": 107,
    "b": 34
  },
  "hsl": {
    "h": 130.787,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.46208,
    "c": 0.13438,
    "h": 145.4
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#126B22
secondary
#A2368F
accent
#3ACEEE
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060D05
muted
#7A7E79

Preview Lab

Preview with #126B22

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

Preview Lab → · Contrast checker → · Palette generator →

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