#98A12C#98A12C

#98A12C is a light, vivid yellow. Relative luminance 0.323; OKLCH L 68.0% C 0.136 H 113.9°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#98A12C
RGBrgb(152, 161, 44)
HSLhsl(65, 57%, 40%)
HSVhsv(65, 73%, 63%)
CMYKcmyk(5.6%, 0%, 72.7%, 36.9%)
CIE-LABlab(63.63, -18.03, 56.23)
CIE-LCHlch(63.63, 59.05, 107.78°)
OKLaboklab(68.03% -0.0551 0.1247)
OKLCHoklch(68.03% 0.136 113.9)
XYZxyz(26.1491, 32.3475, 7.2486)
Luminance0.3235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A12C #352CA1
analogous
#A16F2C #98A12C #5EA12C
triadic
#98A12C #2C98A1 #A12C98
tetradic
#98A12C #2CA16F #352CA1 #A12C5E
square
#98A12C #2CA16F #352CA1 #A12C5E
split-complementary
#98A12C #2C5EA1 #6F2CA1
monochromatic
#3D4112 #6B711F #98A12C #C0CB40 #D0D870

Accessibility & contrast

On white

2.81
#98A12C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#98A12C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #98A12C
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98A12C#FFFFFF#000000##000000
##98A12C1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9916
Deuteranopia (green-blind)
#AD9B35
Tritanopia (blue-blind)
#A2978A
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #98a12c;
/* rgb */ color: rgb(152, 161, 44);
/* oklch */ color: oklch(68.0% 0.136 113.9);
Tailwind
colors: {
  custom: {
    50: '#babc6e',
    500: '#98a12c',
    950: '#000000',
  },
}
SCSS
$custom: #98a12c;
$custom-light: #babc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#98a12c",
  "rgb": {
    "r": 152,
    "g": 161,
    "b": 44
  },
  "hsl": {
    "h": 64.615,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.68027,
    "c": 0.13636,
    "h": 113.9
  },
  "luminance": 0.32347
}

Semantic roles & 50–950 ramp

primary
#98A12C
secondary
#706ABF
accent
#47E053
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121208
muted
#81817B

Preview Lab

Preview with #98A12C

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

Preview Lab → · Contrast checker → · Palette generator →

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