#948221#948221

#948221 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.6% C 0.114 H 98.2°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#948221
RGBrgb(148, 130, 33)
HSLhsl(51, 64%, 35%)
HSVhsv(51, 78%, 58%)
CMYKcmyk(0%, 12.2%, 77.7%, 42%)
CIE-LABlab(54.42, -3.82, 51.36)
CIE-LCHlch(54.42, 51.50, 94.25°)
OKLaboklab(60.58% -0.0161 0.1125)
OKLCHoklch(60.58% 0.114 98.2)
XYZxyz(20.4709, 22.3720, 4.6785)
Luminance0.2237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948221 #213394
analogous
#944921 #948221 #6C9421
triadic
#948221 #219482 #822194
tetradic
#948221 #219449 #213394 #94216C
square
#948221 #219449 #213394 #94216C
split-complementary
#948221 #216C94 #492194
monochromatic
#302A0B #625616 #948221 #C6AE2C #D9C556

Accessibility & contrast

On white

3.84
#948221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#948221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948221
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948221#FFFFFF#000000##000000
##9482211.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#A0786F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #948221;
/* rgb */ color: rgb(148, 130, 33);
/* oklch */ color: oklch(60.6% 0.114 98.2);
Tailwind
colors: {
  custom: {
    50: '#b7a664',
    500: '#948221',
    950: '#000000',
  },
}
SCSS
$custom: #948221;
$custom-light: #b7a664;
$custom-dark: #000000;
JSON
{
  "hex": "#948221",
  "rgb": {
    "r": 148,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 50.609,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60579,
    "c": 0.1136,
    "h": 98.2
  },
  "luminance": 0.22371
}

Semantic roles & 50–950 ramp

primary
#948221
secondary
#5464BD
accent
#5BE741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #948221

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

Preview Lab → · Contrast checker → · Palette generator →

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