#98AC2B#98AC2B

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

Color values

HEX#98AC2B
RGBrgb(152, 172, 43)
HSLhsl(69, 60%, 42%)
HSVhsv(69, 75%, 67%)
CMYKcmyk(11.6%, 0%, 75%, 32.5%)
CIE-LABlab(66.79, -23.62, 59.61)
CIE-LCHlch(66.79, 64.12, 111.61°)
OKLaboklab(70.56% -0.0707 0.1317)
OKLCHoklch(70.56% 0.149 118.2)
XYZxyz(28.1381, 36.3551, 7.8200)
Luminance0.3635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98AC2B #3F2BAC
analogous
#AC7F2B #98AC2B #58AC2B
triadic
#98AC2B #2B98AC #AC2B98
tetradic
#98AC2B #2BAC7F #3F2BAC #AC2B58
square
#98AC2B #2BAC7F #3F2BAC #AC2B58
split-complementary
#98AC2B #2B58AC #7F2BAC
monochromatic
#414A13 #6D7B1F #98AC2B #BAD044 #CCDC75

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98AC2B#FFFFFF#000000##000000
##98AC2B1.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)
#B8A20E
Deuteranopia (green-blind)
#B5A336
Tritanopia (blue-blind)
#A1A294
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #98ac2b;
/* rgb */ color: rgb(152, 172, 43);
/* oklch */ color: oklch(70.6% 0.149 118.2);
Tailwind
colors: {
  custom: {
    50: '#bac46e',
    500: '#98ac2b',
    950: '#000000',
  },
}
SCSS
$custom: #98ac2b;
$custom-light: #bac46e;
$custom-dark: #000000;
JSON
{
  "hex": "#98ac2b",
  "rgb": {
    "r": 152,
    "g": 172,
    "b": 43
  },
  "hsl": {
    "h": 69.302,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.70564,
    "c": 0.14943,
    "h": 118.2
  },
  "luminance": 0.36355
}

Semantic roles & 50–950 ramp

primary
#98AC2B
secondary
#7C6FC4
accent
#45E35D
background
#FBFCF7
surface
#F7F8ED
border
#D0D1C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98AC2B

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

Preview Lab → · Contrast checker → · Palette generator →

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