#98A12B#98A12B

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

Color values

HEX#98A12B
RGBrgb(152, 161, 43)
HSLhsl(65, 58%, 40%)
HSVhsv(65, 73%, 63%)
CMYKcmyk(5.6%, 0%, 73.3%, 36.9%)
CIE-LABlab(63.62, -18.09, 56.59)
CIE-LCHlch(63.62, 59.41, 107.72°)
OKLaboklab(68.02% -0.0554 0.1253)
OKLCHoklch(68.02% 0.137 113.8)
XYZxyz(26.1306, 32.3401, 7.1508)
Luminance0.3234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98A12B #342BA1
analogous
#A16F2B #98A12B #5DA12B
triadic
#98A12B #2B98A1 #A12B98
tetradic
#98A12B #2BA16F #342BA1 #A12B5D
square
#98A12B #2BA16F #342BA1 #A12B5D
split-complementary
#98A12B #2B5DA1 #6F2BA1
monochromatic
#3D4011 #6A711E #98A12B #C1CB3E #D0D86E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98A12B#FFFFFF#000000##000000
##98A12B1.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)
#AD9914
Deuteranopia (green-blind)
#AD9B35
Tritanopia (blue-blind)
#A2978A
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #98a12b;
/* rgb */ color: rgb(152, 161, 43);
/* oklch */ color: oklch(68.0% 0.137 113.8);
Tailwind
colors: {
  custom: {
    50: '#babc6d',
    500: '#98a12b',
    950: '#000000',
  },
}
SCSS
$custom: #98a12b;
$custom-light: #babc6d;
$custom-dark: #000000;
JSON
{
  "hex": "#98a12b",
  "rgb": {
    "r": 152,
    "g": 161,
    "b": 43
  },
  "hsl": {
    "h": 64.576,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.6802,
    "c": 0.13697,
    "h": 113.8
  },
  "luminance": 0.3234
}

Semantic roles & 50–950 ramp

primary
#98A12B
secondary
#6F69BF
accent
#47E152
background
#FBFBF6
surface
#F7F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #98A12B

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

Preview Lab → · Contrast checker → · Palette generator →

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