#98A228#98A228

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

Color values

HEX#98A228
RGBrgb(152, 162, 40)
HSLhsl(65, 60%, 40%)
HSVhsv(65, 75%, 64%)
CMYKcmyk(6.2%, 0%, 75.3%, 36.5%)
CIE-LABlab(63.89, -18.74, 57.89)
CIE-LCHlch(63.89, 60.85, 107.94°)
OKLaboklab(68.23% -0.0575 0.1275)
OKLCHoklch(68.23% 0.14 114.3)
XYZxyz(26.2530, 32.6698, 6.9300)
Luminance0.3267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A228 #3228A2
analogous
#A26F28 #98A228 #5BA228
triadic
#98A228 #2898A2 #A22898
tetradic
#98A228 #28A26F #3228A2 #A2285B
square
#98A228 #28A26F #3228A2 #A2285B
split-complementary
#98A228 #285BA2 #6F28A2
monochromatic
#3C4010 #6A711C #98A228 #C2CE39 #D1DA6A

Accessibility & contrast

On white

2.79
#98A228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#98A228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A228
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A228#FFFFFF#000000##000000
##98A2281.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0C
Deuteranopia (green-blind)
#AE9C32
Tritanopia (blue-blind)
#A2988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #98a228;
/* rgb */ color: rgb(152, 162, 40);
/* oklch */ color: oklch(68.2% 0.140 114.3);
Tailwind
colors: {
  custom: {
    50: '#babd6c',
    500: '#98a228',
    950: '#000000',
  },
}
SCSS
$custom: #98a228;
$custom-light: #babd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#98a228",
  "rgb": {
    "r": 152,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 64.918,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68231,
    "c": 0.13985,
    "h": 114.3
  },
  "luminance": 0.32669
}

Semantic roles & 50–950 ramp

primary
#98A228
secondary
#6D65C1
accent
#44E451
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98A228

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

Preview Lab → · Contrast checker → · Palette generator →

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