#127B28#127B28

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

Color values

HEX#127B28
RGBrgb(18, 123, 40)
HSLhsl(133, 74%, 28%)
HSVhsv(133, 85%, 48%)
CMYKcmyk(85.4%, 0%, 67.5%, 51.8%)
CIE-LABlab(44.87, -45.87, 36.37)
CIE-LCHlch(44.87, 58.54, 141.59°)
OKLaboklab(50.96% -0.1235 0.0845)
OKLCHoklch(50.96% 0.15 145.6)
XYZxyz(7.7148, 14.4468, 4.3890)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#127B28 #7B1265
analogous
#317B12 #127B28 #127B5C
triadic
#127B28 #28127B #7B2812
tetradic
#127B28 #12317B #7B1265 #7B5C12
square
#127B28 #12317B #7B1265 #7B5C12
split-complementary
#127B28 #5C127B #7B1231
monochromatic
#041B09 #0A4617 #127B28 #1AB039 #28E04E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##127B28#FFFFFF#000000##FFFFFF
##127B281.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)
#7D6F1E
Deuteranopia (green-blind)
#726730
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #127b28;
/* rgb */ color: rgb(18, 123, 40);
/* oklch */ color: oklch(51.0% 0.150 145.6);
Tailwind
colors: {
  custom: {
    50: '#66a266',
    500: '#127b28',
    950: '#000000',
  },
}
SCSS
$custom: #127b28;
$custom-light: #66a266;
$custom-dark: #000000;
JSON
{
  "hex": "#127b28",
  "rgb": {
    "r": 18,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 132.571,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.5096,
    "c": 0.14966,
    "h": 145.6
  },
  "luminance": 0.14448
}

Semantic roles & 50–950 ramp

primary
#127B28
secondary
#B13898
accent
#37CAF1
background
#F6FAF6
surface
#EBF4EB
border
#C6CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #127B28

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

Preview Lab → · Contrast checker → · Palette generator →

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