#126B23#126B23

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

Color values

HEX#126B23
RGBrgb(18, 107, 35)
HSLhsl(131, 71%, 25%)
HSVhsv(131, 83%, 42%)
CMYKcmyk(83.2%, 0%, 67.3%, 58%)
CIE-LABlab(39.18, -40.89, 32.40)
CIE-LCHlch(39.18, 52.17, 141.61°)
OKLaboklab(46.22% -0.1102 0.0755)
OKLCHoklch(46.22% 0.134 145.6)
XYZxyz(5.8101, 10.7646, 3.3614)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#126B23 #6B125A
analogous
#2D6B12 #126B23 #126B50
triadic
#126B23 #23126B #6B2312
tetradic
#126B23 #122D6B #6B125A #6B5012
square
#126B23 #122D6B #6B125A #6B5012
split-complementary
#126B23 #50126B #6B122D
monochromatic
#041A09 #093712 #126B23 #1B9F34 #24D445

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##126B23#FFFFFF#000000##FFFFFF
##126B231.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)
#6D601A
Deuteranopia (green-blind)
#635A29
Tritanopia (blue-blind)
#00685C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #126b23;
/* rgb */ color: rgb(18, 107, 35);
/* oklch */ color: oklch(46.2% 0.134 145.6);
Tailwind
colors: {
  custom: {
    50: '#629661',
    500: '#126b23',
    950: '#000000',
  },
}
SCSS
$custom: #126b23;
$custom-light: #629661;
$custom-dark: #000000;
JSON
{
  "hex": "#126b23",
  "rgb": {
    "r": 18,
    "g": 107,
    "b": 35
  },
  "hsl": {
    "h": 131.461,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.4622,
    "c": 0.13357,
    "h": 145.6
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#126B23
secondary
#A2368E
accent
#3ACCEE
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060D05
muted
#7A7E79

Preview Lab

Preview with #126B23

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

Preview Lab → · Contrast checker → · Palette generator →

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