#98A231#98A231

#98A231 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 68.3% C 0.134 H 114.3°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#98A231
RGBrgb(152, 162, 49)
HSLhsl(65, 54%, 41%)
HSVhsv(65, 70%, 64%)
CMYKcmyk(6.2%, 0%, 69.8%, 36.5%)
CIE-LABlab(63.95, -18.27, 54.66)
CIE-LCHlch(63.95, 57.64, 108.48°)
OKLaboklab(68.29% -0.0553 0.1223)
OKLCHoklch(68.29% 0.134 114.3)
XYZxyz(26.4243, 32.7383, 7.8323)
Luminance0.3274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A231 #3B31A2
analogous
#A27431 #98A231 #60A231
triadic
#98A231 #3198A2 #A23198
tetradic
#98A231 #31A274 #3B31A2 #A23160
square
#98A231 #31A274 #3B31A2 #A23160
split-complementary
#98A231 #3160A2 #7431A2
monochromatic
#404415 #6C7323 #98A231 #BDC848 #CED677

Accessibility & contrast

On white

2.78
#98A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#98A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A231
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A231#FFFFFF#000000##000000
##98A2311.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1F
Deuteranopia (green-blind)
#AD9C39
Tritanopia (blue-blind)
#A2988C
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #98a231;
/* rgb */ color: rgb(152, 162, 49);
/* oklch */ color: oklch(68.3% 0.134 114.3);
Tailwind
colors: {
  custom: {
    50: '#b9bd70',
    500: '#98a231',
    950: '#000000',
  },
}
SCSS
$custom: #98a231;
$custom-light: #b9bd70;
$custom-dark: #000000;
JSON
{
  "hex": "#98a231",
  "rgb": {
    "r": 152,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 65.31,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.68293,
    "c": 0.1342,
    "h": 114.3
  },
  "luminance": 0.32738
}

Semantic roles & 50–950 ramp

primary
#98A231
secondary
#7771BE
accent
#4BDD58
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121208
muted
#81817B

Preview Lab

Preview with #98A231

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

Preview Lab → · Contrast checker → · Palette generator →

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