#9D942E#9D942E

#9D942E is a light, vivid yellow. Relative luminance 0.285; OKLCH L 65.5% C 0.121 H 104.2°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9D942E
RGBrgb(157, 148, 46)
HSLhsl(55, 55%, 40%)
HSVhsv(55, 71%, 62%)
CMYKcmyk(0%, 5.7%, 70.7%, 38.4%)
CIE-LABlab(60.38, -8.91, 52.42)
CIE-LCHlch(60.38, 53.18, 99.64°)
OKLaboklab(65.54% -0.0296 0.1169)
OKLCHoklch(65.54% 0.121 104.2)
XYZxyz(24.9887, 28.5461, 6.7779)
Luminance0.2854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D942E #2E379D
analogous
#9D5C2E #9D942E #6F9D2E
triadic
#9D942E #2E9D94 #942E9D
tetradic
#9D942E #2E9D5C #2E379D #9D2E6F
square
#9D942E #2E9D5C #2E379D #9D2E6F
split-complementary
#9D942E #2E6F9D #5C2E9D
monochromatic
#3E3B12 #6E6720 #9D942E #C7BC41 #D5CD70

Accessibility & contrast

On white

3.13
#9D942E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#9D942E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D942E
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D942E#FFFFFF#000000##000000
##9D942E1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18F1E
Deuteranopia (green-blind)
#A49435
Tritanopia (blue-blind)
#A98A80
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #9d942e;
/* rgb */ color: rgb(157, 148, 46);
/* oklch */ color: oklch(65.5% 0.121 104.2);
Tailwind
colors: {
  custom: {
    50: '#bdb36d',
    500: '#9d942e',
    950: '#000000',
  },
}
SCSS
$custom: #9d942e;
$custom-light: #bdb36d;
$custom-dark: #000000;
JSON
{
  "hex": "#9d942e",
  "rgb": {
    "r": 157,
    "g": 148,
    "b": 46
  },
  "hsl": {
    "h": 55.135,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.65538,
    "c": 0.12056,
    "h": 104.2
  },
  "luminance": 0.28545
}

Semantic roles & 50–950 ramp

primary
#9D942E
secondary
#6A71BD
accent
#56DE4A
background
#FCFAF6
surface
#F8F5EC
border
#D1CFC7
text
#121107
muted
#81807A

Preview Lab

Preview with #9D942E

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

Preview Lab → · Contrast checker → · Palette generator →

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