#2A731C#2A731C

#2A731C is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.140 H 140.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2A731C
RGBrgb(42, 115, 28)
HSLhsl(110, 61%, 28%)
HSVhsv(110, 76%, 45%)
CMYKcmyk(63.5%, 0%, 75.7%, 54.9%)
CIE-LABlab(42.52, -39.74, 39.22)
CIE-LCHlch(42.52, 55.84, 135.38°)
OKLaboklab(49.13% -0.1088 0.0888)
OKLCHoklch(49.13% 0.14 140.8)
XYZxyz(7.2948, 12.8369, 3.1917)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A731C #651C73
analogous
#55731C #2A731C #1C7339
triadic
#2A731C #1C2A73 #731C2A
tetradic
#2A731C #1C5573 #651C73 #73391C
square
#2A731C #1C5573 #651C73 #73391C
split-complementary
#2A731C #391C73 #731C55
monochromatic
#091906 #184210 #2A731C #3CA428 #52CF3A

Accessibility & contrast

On white

5.89
#2A731C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2A731C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A731C
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A731C#FFFFFF#000000##FFFFFF
##2A731C1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680D
Deuteranopia (green-blind)
#6D6225
Tritanopia (blue-blind)
#1F6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a731c;
/* rgb */ color: rgb(42, 115, 28);
/* oklch */ color: oklch(49.1% 0.140 140.8);
Tailwind
colors: {
  custom: {
    50: '#6d9c5e',
    500: '#2a731c',
    950: '#000000',
  },
}
SCSS
$custom: #2a731c;
$custom-light: #6d9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a731c",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 110.345,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.14043,
    "h": 140.8
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#2A731C
secondary
#9743A7
accent
#44E4CA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A731C

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

Preview Lab → · Contrast checker → · Palette generator →

#2A731C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva