#9DA540#9DA540

#9DA540 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.5% C 0.125 H 113.4°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#9DA540
RGBrgb(157, 165, 64)
HSLhsl(65, 44%, 45%)
HSVhsv(65, 61%, 65%)
CMYKcmyk(4.8%, 0%, 61.2%, 35.3%)
CIE-LABlab(65.32, -16.69, 49.94)
CIE-LCHlch(65.32, 52.65, 108.47°)
OKLaboklab(69.53% -0.0496 0.1145)
OKLCHoklch(69.53% 0.125 113.4)
XYZxyz(28.2859, 34.4491, 10.0088)
Luminance0.3445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DA540 #4840A5
analogous
#A57A40 #9DA540 #6BA540
triadic
#9DA540 #409DA5 #A5409D
tetradic
#9DA540 #40A57A #4840A5 #A5406B
square
#9DA540 #40A57A #4840A5 #A5406B
split-complementary
#9DA540 #406BA5 #7A40A5
monochromatic
#494D1E #73792F #9DA540 #BAC261 #CDD38D

Accessibility & contrast

On white

2.66
#9DA540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#9DA540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DA540
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DA540#FFFFFF#000000##000000
##9DA5401.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09E34
Deuteranopia (green-blind)
#B0A046
Tritanopia (blue-blind)
#A79C90
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #9da540;
/* rgb */ color: rgb(157, 165, 64);
/* oklch */ color: oklch(69.5% 0.125 113.4);
Tailwind
colors: {
  custom: {
    50: '#bcbf79',
    500: '#9da540',
    950: '#000000',
  },
}
SCSS
$custom: #9da540;
$custom-light: #bcbf79;
$custom-dark: #000000;
JSON
{
  "hex": "#9da540",
  "rgb": {
    "r": 157,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 64.752,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69525,
    "c": 0.12476,
    "h": 113.4
  },
  "luminance": 0.34449
}

Semantic roles & 50–950 ramp

primary
#9DA540
secondary
#8883BE
accent
#54D45E
background
#FBFBF7
surface
#F7F7EE
border
#D0D0C9
text
#121209
muted
#81817B

Preview Lab

Preview with #9DA540

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

Preview Lab → · Contrast checker → · Palette generator →

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