#998125#998125

#998125 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.9% C 0.111 H 93.8°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#998125
RGBrgb(153, 129, 37)
HSLhsl(48, 61%, 37%)
HSVhsv(48, 76%, 60%)
CMYKcmyk(0%, 15.7%, 75.8%, 40%)
CIE-LABlab(54.67, -0.78, 50.26)
CIE-LCHlch(54.67, 50.27, 90.89°)
OKLaboklab(60.9% -0.0073 0.1107)
OKLCHoklch(60.9% 0.111 93.8)
XYZxyz(21.3222, 22.6076, 4.9905)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#998125 #253D99
analogous
#994725 #998125 #779925
triadic
#998125 #259981 #812599
tetradic
#998125 #259947 #253D99 #992577
square
#998125 #259947 #253D99 #992577
split-complementary
#998125 #257799 #472599
monochromatic
#362E0D #685719 #998125 #CAAB31 #D9C060

Accessibility & contrast

On white

3.80
#998125 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#998125 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #998125
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##998125#FFFFFF#000000##000000
##9981251.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F15
Deuteranopia (green-blind)
#95862A
Tritanopia (blue-blind)
#A6766F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #998125;
/* rgb */ color: rgb(153, 129, 37);
/* oklch */ color: oklch(60.9% 0.111 93.8);
Tailwind
colors: {
  custom: {
    50: '#bba566',
    500: '#998125',
    950: '#000000',
  },
}
SCSS
$custom: #998125;
$custom-light: #bba566;
$custom-dark: #000000;
JSON
{
  "hex": "#998125",
  "rgb": {
    "r": 153,
    "g": 129,
    "b": 37
  },
  "hsl": {
    "h": 47.586,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.60898,
    "c": 0.11095,
    "h": 93.8
  },
  "luminance": 0.22606
}

Semantic roles & 50–950 ramp

primary
#998125
secondary
#5C70BE
accent
#65E444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #998125

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

Preview Lab → · Contrast checker → · Palette generator →

#998125 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva