#298312#298312

#298312 is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.6% C 0.165 H 140.5°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#298312
RGBrgb(41, 131, 18)
HSLhsl(108, 76%, 29%)
HSVhsv(108, 86%, 51%)
CMYKcmyk(68.7%, 0%, 86.3%, 48.6%)
CIE-LABlab(47.94, -46.53, 47.74)
CIE-LCHlch(47.94, 66.67, 134.27°)
OKLaboklab(53.6% -0.1275 0.1052)
OKLCHoklch(53.6% 0.165 140.5)
XYZxyz(9.1395, 16.7468, 3.3229)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298312 #6C1283
analogous
#628312 #298312 #128334
triadic
#298312 #122983 #831229
tetradic
#298312 #126283 #6C1283 #833412
square
#298312 #126283 #6C1283 #833412
split-complementary
#298312 #341283 #831262
monochromatic
#081B04 #184D0B #298312 #3AB919 #52E22D

Accessibility & contrast

On white

4.83
#298312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#298312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #298312
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298312#FFFFFF#000000##FFFFFF
##2983121.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#187E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #298312;
/* rgb */ color: rgb(41, 131, 18);
/* oklch */ color: oklch(53.6% 0.165 140.5);
Tailwind
colors: {
  custom: {
    50: '#71a85c',
    500: '#298312',
    950: '#000000',
  },
}
SCSS
$custom: #298312;
$custom-light: #71a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#298312",
  "rgb": {
    "r": 41,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 107.788,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53596,
    "c": 0.1653,
    "h": 140.5
  },
  "luminance": 0.16748
}

Semantic roles & 50–950 ramp

primary
#298312
secondary
#9E38B8
accent
#35F2CC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #298312

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

Preview Lab → · Contrast checker → · Palette generator →

#298312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva