#9D8F25#9D8F25

#9D8F25 is a light, vivid yellow. Relative luminance 0.269; OKLCH L 64.4% C 0.122 H 101.5°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#9D8F25
RGBrgb(157, 143, 37)
HSLhsl(53, 62%, 38%)
HSVhsv(53, 76%, 62%)
CMYKcmyk(0%, 8.9%, 76.4%, 38.4%)
CIE-LABlab(58.93, -6.65, 54.44)
CIE-LCHlch(58.93, 54.84, 96.97°)
OKLaboklab(64.37% -0.0242 0.1194)
OKLCHoklch(64.37% 0.122 101.5)
XYZxyz(24.0621, 26.9477, 5.6839)
Luminance0.2695 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F25 #25339D
analogous
#9D5325 #9D8F25 #6F9D25
triadic
#9D8F25 #259D8F #8F259D
tetradic
#9D8F25 #259D53 #25339D #9D256F
square
#9D8F25 #259D53 #25339D #9D256F
split-complementary
#9D8F25 #256F9D #53259D
monochromatic
#3A350E #6B6219 #9D8F25 #CEBC31 #DACC62

Accessibility & contrast

On white

3.29
#9D8F25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#9D8F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F25
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F25#FFFFFF#000000##000000
##9D8F251.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B0F
Deuteranopia (green-blind)
#A1902D
Tritanopia (blue-blind)
#A9847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f25;
/* rgb */ color: rgb(157, 143, 37);
/* oklch */ color: oklch(64.4% 0.122 101.5);
Tailwind
colors: {
  custom: {
    50: '#beaf68',
    500: '#9d8f25',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f25;
$custom-light: #beaf68;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f25",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 37
  },
  "hsl": {
    "h": 53,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.64365,
    "c": 0.12184,
    "h": 101.5
  },
  "luminance": 0.26947
}

Semantic roles & 50–950 ramp

primary
#9D8F25
secondary
#5E6ABF
accent
#56E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9D8F25

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

Preview Lab → · Contrast checker → · Palette generator →

#9D8F25 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva