#948331#948331

#948331 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 60.9% C 0.103 H 97.5°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#948331
RGBrgb(148, 131, 49)
HSLhsl(50, 50%, 39%)
HSVhsv(50, 67%, 58%)
CMYKcmyk(0%, 11.5%, 66.9%, 42%)
CIE-LABlab(54.82, -3.52, 45.17)
CIE-LCHlch(54.82, 45.30, 94.46°)
OKLaboklab(60.93% -0.0134 0.1023)
OKLCHoklch(60.93% 0.103 97.5)
XYZxyz(20.8844, 22.7512, 6.1965)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948331 #314294
analogous
#945131 #948331 #739431
triadic
#948331 #319483 #833194
tetradic
#948331 #319451 #314294 #943173
square
#948331 #319451 #314294 #943173
split-complementary
#948331 #317394 #513194
monochromatic
#383213 #665A22 #948331 #C0AB42 #D0BF70

Accessibility & contrast

On white

3.78
#948331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#948331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948331
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948331#FFFFFF#000000##000000
##9483311.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#908027
Deuteranopia (green-blind)
#948635
Tritanopia (blue-blind)
#9F7972
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #948331;
/* rgb */ color: rgb(148, 131, 49);
/* oklch */ color: oklch(60.9% 0.103 97.5);
Tailwind
colors: {
  custom: {
    50: '#b6a66d',
    500: '#948331',
    950: '#000000',
  },
}
SCSS
$custom: #948331;
$custom-light: #b6a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#948331",
  "rgb": {
    "r": 148,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 49.697,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.6093,
    "c": 0.10322,
    "h": 97.5
  },
  "luminance": 0.2275
}

Semantic roles & 50–950 ramp

primary
#948331
secondary
#6977B7
accent
#66DA4E
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#120F07
muted
#817F7A

Preview Lab

Preview with #948331

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

Preview Lab → · Contrast checker → · Palette generator →

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