#488F1F#488F1F

#488F1F is a mid, vivid yellow-green. Relative luminance 0.211; OKLCH L 58.2% C 0.160 H 136.8°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#488F1F
RGBrgb(72, 143, 31)
HSLhsl(98, 64%, 34%)
HSVhsv(98, 78%, 56%)
CMYKcmyk(49.7%, 0%, 78.3%, 43.9%)
CIE-LABlab(53.08, -41.87, 48.94)
CIE-LCHlch(53.08, 64.40, 130.54°)
OKLaboklab(58.16% -0.1163 0.1092)
OKLCHoklch(58.16% 0.16 136.8)
XYZxyz(12.7419, 21.1207, 4.7013)
Luminance0.2112 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#488F1F #661F8F
analogous
#808F1F #488F1F #1F8F2E
triadic
#488F1F #1F488F #8F1F48
tetradic
#488F1F #1F808F #661F8F #8F2E1F
square
#488F1F #1F808F #661F8F #8F2E1F
split-complementary
#488F1F #2E1F8F #8F1F80
monochromatic
#152A09 #2F5D14 #488F1F #61C12A #82D94F

Accessibility & contrast

On white

4.02
#488F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#488F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #488F1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##488F1F#FFFFFF#000000##000000
##488F1F1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948203
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#448A7A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #488f1f;
/* rgb */ color: rgb(72, 143, 31);
/* oklch */ color: oklch(58.2% 0.160 136.8);
Tailwind
colors: {
  custom: {
    50: '#82b064',
    500: '#488f1f',
    950: '#000000',
  },
}
SCSS
$custom: #488f1f;
$custom-light: #82b064;
$custom-dark: #000000;
JSON
{
  "hex": "#488f1f",
  "rgb": {
    "r": 72,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 98.036,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58161,
    "c": 0.15955,
    "h": 136.8
  },
  "luminance": 0.21122
}

Semantic roles & 50–950 ramp

primary
#488F1F
secondary
#944EBC
accent
#40E7AA
background
#F8FAF6
surface
#EFF5EB
border
#CACFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #488F1F

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

Preview Lab → · Contrast checker → · Palette generator →

#488F1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva