#2A731B#2A731B

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

Color values

HEX#2A731B
RGBrgb(42, 115, 27)
HSLhsl(110, 62%, 28%)
HSVhsv(110, 77%, 45%)
CMYKcmyk(63.5%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.51, -39.82, 39.61)
CIE-LCHlch(42.51, 56.17, 135.15°)
OKLaboklab(49.12% -0.109 0.0895)
OKLCHoklch(49.12% 0.141 140.6)
XYZxyz(7.2831, 12.8322, 3.1297)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A731B #641B73
analogous
#56731B #2A731B #1B7338
triadic
#2A731B #1B2A73 #731B2A
tetradic
#2A731B #1B5673 #641B73 #73381B
square
#2A731B #1B5673 #641B73 #73381B
split-complementary
#2A731B #381B73 #731B56
monochromatic
#091906 #18410F #2A731B #3CA527 #52D038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A731B#FFFFFF#000000##FFFFFF
##2A731B1.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)
#76680B
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#1F6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a731b;
/* rgb */ color: rgb(42, 115, 27);
/* oklch */ color: oklch(49.1% 0.141 140.6);
Tailwind
colors: {
  custom: {
    50: '#6d9c5e',
    500: '#2a731b',
    950: '#000000',
  },
}
SCSS
$custom: #2a731b;
$custom-light: #6d9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a731b",
  "rgb": {
    "r": 42,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 109.773,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49123,
    "c": 0.14107,
    "h": 140.6
  },
  "luminance": 0.12833
}

Semantic roles & 50–950 ramp

primary
#2A731B
secondary
#9642A8
accent
#43E5C9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #2A731B

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

Preview Lab → · Contrast checker → · Palette generator →

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