#2A530F#2A530F

#2A530F is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.106 H 135.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2A530F
RGBrgb(42, 83, 15)
HSLhsl(96, 69%, 19%)
HSVhsv(96, 82%, 33%)
CMYKcmyk(49.4%, 0%, 81.9%, 67.5%)
CIE-LABlab(31.14, -27.37, 33.02)
CIE-LCHlch(31.14, 42.89, 129.65°)
OKLaboklab(39.73% -0.0763 0.0739)
OKLCHoklch(39.73% 0.106 135.9)
XYZxyz(4.1342, 6.7130, 1.5297)
Luminance0.0671 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A530F #380F53
analogous
#4C530F #2A530F #0F5316
triadic
#2A530F #0F2A53 #530F2A
tetradic
#2A530F #0F4C53 #380F53 #53160F
square
#2A530F #0F4C53 #380F53 #53160F
split-complementary
#2A530F #160F53 #530F4C
monochromatic
#0D1A05 #101F06 #2A530F #448718 #5EBB22

Accessibility & contrast

On white

8.96
#2A530F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A530F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A530F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A530F#FFFFFF#000000##FFFFFF
##2A530F1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B03
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#285046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a530f;
/* rgb */ color: rgb(42, 83, 15);
/* oklch */ color: oklch(39.7% 0.106 135.9);
Tailwind
colors: {
  custom: {
    50: '#688453',
    500: '#2a530f',
    950: '#000000',
  },
}
SCSS
$custom: #2a530f;
$custom-light: #688453;
$custom-dark: #000000;
JSON
{
  "hex": "#2a530f",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 15
  },
  "hsl": {
    "h": 96.176,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.10618,
    "h": 135.9
  },
  "luminance": 0.06713
}

Semantic roles & 50–950 ramp

primary
#2A530F
secondary
#68318D
accent
#3CECA6
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A530F

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

Preview Lab → · Contrast checker → · Palette generator →

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