#127B2A#127B2A

#127B2A is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.0% C 0.148 H 146.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#127B2A
RGBrgb(18, 123, 42)
HSLhsl(134, 74%, 28%)
HSVhsv(134, 85%, 48%)
CMYKcmyk(85.4%, 0%, 65.9%, 51.8%)
CIE-LABlab(44.89, -45.63, 35.46)
CIE-LCHlch(44.89, 57.79, 142.15°)
OKLaboklab(50.98% -0.1228 0.0828)
OKLCHoklch(50.98% 0.148 146)
XYZxyz(7.7497, 14.4607, 4.5728)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127B2A #7B1263
analogous
#2F7B12 #127B2A #127B5E
triadic
#127B2A #2A127B #7B2A12
tetradic
#127B2A #122F7B #7B1263 #7B5E12
square
#127B2A #122F7B #7B1263 #7B5E12
split-complementary
#127B2A #5E127B #7B122F
monochromatic
#041B09 #0A4618 #127B2A #1AB03C #28E052

Accessibility & contrast

On white

5.40
#127B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#127B2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #127B2A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##127B2A#FFFFFF#000000##FFFFFF
##127B2A1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F20
Deuteranopia (green-blind)
#726731
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #127b2a;
/* rgb */ color: rgb(18, 123, 42);
/* oklch */ color: oklch(51.0% 0.148 146.0);
Tailwind
colors: {
  custom: {
    50: '#66a267',
    500: '#127b2a',
    950: '#000000',
  },
}
SCSS
$custom: #127b2a;
$custom-light: #66a267;
$custom-dark: #000000;
JSON
{
  "hex": "#127b2a",
  "rgb": {
    "r": 18,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 133.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.50983,
    "c": 0.14808,
    "h": 146
  },
  "luminance": 0.14462
}

Semantic roles & 50–950 ramp

primary
#127B2A
secondary
#B13895
accent
#37C6F1
background
#F6FAF6
surface
#EBF4EB
border
#C6CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #127B2A

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

Preview Lab → · Contrast checker → · Palette generator →

#127B2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva