#98A227#98A227

#98A227 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#98A227
RGBrgb(152, 162, 39)
HSLhsl(65, 61%, 39%)
HSVhsv(65, 76%, 64%)
CMYKcmyk(6.2%, 0%, 75.9%, 36.5%)
CIE-LABlab(63.89, -18.79, 58.23)
CIE-LCHlch(63.89, 61.18, 107.88°)
OKLaboklab(68.23% -0.0577 0.128)
OKLCHoklch(68.23% 0.14 114.3)
XYZxyz(26.2362, 32.6631, 6.8416)
Luminance0.3266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A227 #3127A2
analogous
#A26F27 #98A227 #5BA227
triadic
#98A227 #2798A2 #A22798
tetradic
#98A227 #27A26F #3127A2 #A2275B
square
#98A227 #27A26F #3127A2 #A2275B
split-complementary
#98A227 #275BA2 #6F27A2
monochromatic
#3B3F0F #6A711B #98A227 #C3CF37 #D2DB69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98A227#FFFFFF#000000##000000
##98A2271.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)
#AE9A09
Deuteranopia (green-blind)
#AE9C32
Tritanopia (blue-blind)
#A2988B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #98a227;
/* rgb */ color: rgb(152, 162, 39);
/* oklch */ color: oklch(68.2% 0.140 114.3);
Tailwind
colors: {
  custom: {
    50: '#babd6b',
    500: '#98a227',
    950: '#000000',
  },
}
SCSS
$custom: #98a227;
$custom-light: #babd6b;
$custom-dark: #000000;
JSON
{
  "hex": "#98a227",
  "rgb": {
    "r": 152,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 64.878,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.68225,
    "c": 0.14042,
    "h": 114.3
  },
  "luminance": 0.32663
}

Semantic roles & 50–950 ramp

primary
#98A227
secondary
#6B64C1
accent
#43E451
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98A227

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

Preview Lab → · Contrast checker → · Palette generator →

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