#948822#948822

#948822 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.9% C 0.118 H 102.3°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#948822
RGBrgb(148, 136, 34)
HSLhsl(54, 63%, 36%)
HSVhsv(54, 77%, 58%)
CMYKcmyk(0%, 8.1%, 77%, 42%)
CIE-LABlab(56.11, -7.08, 52.58)
CIE-LCHlch(56.11, 53.05, 97.67°)
OKLaboklab(61.92% -0.0252 0.1152)
OKLCHoklch(61.92% 0.118 102.3)
XYZxyz(21.3066, 24.0207, 5.0272)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948822 #222E94
analogous
#944F22 #948822 #679422
triadic
#948822 #229488 #882294
tetradic
#948822 #22944F #222E94 #942267
square
#948822 #22944F #222E94 #942267
split-complementary
#948822 #226794 #4F2294
monochromatic
#302D0B #625A17 #948822 #C6B62D #D9CB58

Accessibility & contrast

On white

3.62
#948822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#948822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948822
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948822#FFFFFF#000000##000000
##9488221.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840C
Deuteranopia (green-blind)
#998929
Tritanopia (blue-blind)
#A07E75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #948822;
/* rgb */ color: rgb(148, 136, 34);
/* oklch */ color: oklch(61.9% 0.118 102.3);
Tailwind
colors: {
  custom: {
    50: '#b7aa66',
    500: '#948822',
    950: '#000000',
  },
}
SCSS
$custom: #948822;
$custom-light: #b7aa66;
$custom-dark: #000000;
JSON
{
  "hex": "#948822",
  "rgb": {
    "r": 148,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 53.684,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61921,
    "c": 0.11796,
    "h": 102.3
  },
  "luminance": 0.2402
}

Semantic roles & 50–950 ramp

primary
#948822
secondary
#5560BD
accent
#53E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948822

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

Preview Lab → · Contrast checker → · Palette generator →

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