#98AC2C#98AC2C

#98AC2C is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.6% C 0.149 H 118.3°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#98AC2C
RGBrgb(152, 172, 44)
HSLhsl(69, 59%, 42%)
HSVhsv(69, 74%, 67%)
CMYKcmyk(11.6%, 0%, 74.4%, 32.5%)
CIE-LABlab(66.80, -23.57, 59.27)
CIE-LCHlch(66.80, 63.79, 111.68°)
OKLaboklab(70.57% -0.0705 0.1311)
OKLCHoklch(70.57% 0.149 118.3)
XYZxyz(28.1567, 36.3626, 7.9178)
Luminance0.3636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AC2C #402CAC
analogous
#AC802C #98AC2C #58AC2C
triadic
#98AC2C #2C98AC #AC2C98
tetradic
#98AC2C #2CAC80 #402CAC #AC2C58
square
#98AC2C #2CAC80 #402CAC #AC2C58
split-complementary
#98AC2C #2C58AC #802CAC
monochromatic
#424B13 #6D7B20 #98AC2C #BAD046 #CCDC76

Accessibility & contrast

On white

2.54
#98AC2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#98AC2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98AC2C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98AC2C#FFFFFF#000000##000000
##98AC2C1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A211
Deuteranopia (green-blind)
#B5A337
Tritanopia (blue-blind)
#A1A294
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #98ac2c;
/* rgb */ color: rgb(152, 172, 44);
/* oklch */ color: oklch(70.6% 0.149 118.3);
Tailwind
colors: {
  custom: {
    50: '#bac46f',
    500: '#98ac2c',
    950: '#000000',
  },
}
SCSS
$custom: #98ac2c;
$custom-light: #bac46f;
$custom-dark: #000000;
JSON
{
  "hex": "#98ac2c",
  "rgb": {
    "r": 152,
    "g": 172,
    "b": 44
  },
  "hsl": {
    "h": 69.375,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.7057,
    "c": 0.14886,
    "h": 118.3
  },
  "luminance": 0.36362
}

Semantic roles & 50–950 ramp

primary
#98AC2C
secondary
#7D70C4
accent
#45E25E
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98AC2C

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

Preview Lab → · Contrast checker → · Palette generator →

#98AC2C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva