#948B22#948B22

#948B22 is a light, vivid yellow. Relative luminance 0.249; OKLCH L 62.6% C 0.121 H 104.3°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#948B22
RGBrgb(148, 139, 34)
HSLhsl(55, 63%, 36%)
HSVhsv(55, 77%, 58%)
CMYKcmyk(0%, 6.1%, 77%, 42%)
CIE-LABlab(56.96, -8.71, 53.36)
CIE-LCHlch(56.96, 54.07, 99.27°)
OKLaboklab(62.6% -0.0298 0.1169)
OKLCHoklch(62.6% 0.121 104.3)
XYZxyz(21.7350, 24.8775, 5.1700)
Luminance0.2488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948B22 #222B94
analogous
#945222 #948B22 #649422
triadic
#948B22 #22948B #8B2294
tetradic
#948B22 #229452 #222B94 #942264
square
#948B22 #229452 #222B94 #942264
split-complementary
#948B22 #226494 #522294
monochromatic
#302E0B #625C17 #948B22 #C6BA2D #D9CE58

Accessibility & contrast

On white

3.51
#948B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#948B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948B22
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948B22#FFFFFF#000000##000000
##948B221.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860B
Deuteranopia (green-blind)
#9B8B2A
Tritanopia (blue-blind)
#A08177
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948b22;
/* rgb */ color: rgb(148, 139, 34);
/* oklch */ color: oklch(62.6% 0.121 104.3);
Tailwind
colors: {
  custom: {
    50: '#b7ac66',
    500: '#948b22',
    950: '#000000',
  },
}
SCSS
$custom: #948b22;
$custom-light: #b7ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#948b22",
  "rgb": {
    "r": 148,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 55.263,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.62595,
    "c": 0.12065,
    "h": 104.3
  },
  "luminance": 0.24877
}

Semantic roles & 50–950 ramp

primary
#948B22
secondary
#555DBD
accent
#4FE642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #948B22

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

Preview Lab → · Contrast checker → · Palette generator →

#948B22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva