#938D1F#938D1F

#938D1F is a light, vivid yellow. Relative luminance 0.254; OKLCH L 62.9% C 0.124 H 106.2°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#938D1F
RGBrgb(147, 141, 31)
HSLhsl(57, 65%, 35%)
HSVhsv(57, 79%, 58%)
CMYKcmyk(0%, 4.1%, 78.9%, 42.4%)
CIE-LABlab(57.42, -10.37, 54.77)
CIE-LCHlch(57.42, 55.74, 100.72°)
OKLaboklab(62.94% -0.0347 0.1194)
OKLCHoklch(62.94% 0.124 106.2)
XYZxyz(21.8057, 25.3525, 5.0410)
Luminance0.2535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#938D1F #1F2593
analogous
#93531F #938D1F #5F931F
triadic
#938D1F #1F938D #8D1F93
tetradic
#938D1F #1F9353 #1F2593 #931F5F
square
#938D1F #1F9353 #1F2593 #931F5F
split-complementary
#938D1F #1F5F93 #531F93
monochromatic
#2E2C0A #605D14 #938D1F #C6BD2A #DAD352

Accessibility & contrast

On white

3.46
#938D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#938D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #938D1F
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##938D1F#FFFFFF#000000##000000
##938D1F1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8702
Deuteranopia (green-blind)
#9C8C28
Tritanopia (blue-blind)
#9E8379
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #938d1f;
/* rgb */ color: rgb(147, 141, 31);
/* oklch */ color: oklch(62.9% 0.124 106.2);
Tailwind
colors: {
  custom: {
    50: '#b6ae65',
    500: '#938d1f',
    950: '#000000',
  },
}
SCSS
$custom: #938d1f;
$custom-light: #b6ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#938d1f",
  "rgb": {
    "r": 147,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 56.897,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62936,
    "c": 0.12428,
    "h": 106.2
  },
  "luminance": 0.25352
}

Semantic roles & 50–950 ramp

primary
#938D1F
secondary
#5056BE
accent
#48E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #938D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#938D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva