#298126#298126

#298126 is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.2% C 0.152 H 142.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#298126
RGBrgb(41, 129, 38)
HSLhsl(118, 54%, 33%)
HSVhsv(118, 71%, 51%)
CMYKcmyk(68.2%, 0%, 70.5%, 49.4%)
CIE-LABlab(47.38, -44.33, 40.12)
CIE-LCHlch(47.38, 59.79, 137.86°)
OKLaboklab(53.17% -0.1205 0.0921)
OKLCHoklch(53.17% 0.152 142.6)
XYZxyz(9.1140, 16.3109, 4.5014)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#298126 #7E2681
analogous
#568126 #298126 #268150
triadic
#298126 #262981 #812629
tetradic
#298126 #265681 #7E2681 #815026
square
#298126 #265681 #7E2681 #815026
split-complementary
#298126 #502681 #812656
monochromatic
#0B220A #1A5218 #298126 #38B034 #59CD55

Accessibility & contrast

On white

4.93
#298126 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#298126 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #298126
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##298126#FFFFFF#000000##FFFFFF
##2981261.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847519
Deuteranopia (green-blind)
#796E2F
Tritanopia (blue-blind)
#157D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #298126;
/* rgb */ color: rgb(41, 129, 38);
/* oklch */ color: oklch(53.2% 0.152 142.6);
Tailwind
colors: {
  custom: {
    50: '#6fa665',
    500: '#298126',
    950: '#000000',
  },
}
SCSS
$custom: #298126;
$custom-light: #6fa665;
$custom-dark: #000000;
JSON
{
  "hex": "#298126",
  "rgb": {
    "r": 41,
    "g": 129,
    "b": 38
  },
  "hsl": {
    "h": 118.022,
    "s": 54.491,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53172,
    "c": 0.15168,
    "h": 142.6
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#298126
secondary
#AE51B1
accent
#4ADED9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #298126

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

Preview Lab → · Contrast checker → · Palette generator →

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