#948C28#948C28

#948C28 is a light, moderate yellow. Relative luminance 0.252; OKLCH L 62.9% C 0.118 H 104.7°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#948C28
RGBrgb(148, 140, 40)
HSLhsl(56, 57%, 37%)
HSVhsv(56, 73%, 58%)
CMYKcmyk(0%, 5.4%, 73%, 42%)
CIE-LABlab(57.28, -8.97, 51.46)
CIE-LCHlch(57.28, 52.23, 99.88°)
OKLaboklab(62.86% -0.0299 0.114)
OKLCHoklch(62.86% 0.118 104.7)
XYZxyz(21.9747, 25.2061, 5.7148)
Luminance0.2520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948C28 #283094
analogous
#945628 #948C28 #669428
triadic
#948C28 #28948C #8C2894
tetradic
#948C28 #289456 #283094 #942866
square
#948C28 #289456 #283094 #942866
split-complementary
#948C28 #286694 #562894
monochromatic
#34310E #645E1B #948C28 #C4BA35 #D5CC62

Accessibility & contrast

On white

3.48
#948C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#948C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948C28
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948C28#FFFFFF#000000##000000
##948C281.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998717
Deuteranopia (green-blind)
#9B8C2F
Tritanopia (blue-blind)
#9F8278
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #948c28;
/* rgb */ color: rgb(148, 140, 40);
/* oklch */ color: oklch(62.9% 0.118 104.7);
Tailwind
colors: {
  custom: {
    50: '#b7ad69',
    500: '#948c28',
    950: '#000000',
  },
}
SCSS
$custom: #948c28;
$custom-light: #b7ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#948c28",
  "rgb": {
    "r": 148,
    "g": 140,
    "b": 40
  },
  "hsl": {
    "h": 55.556,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62861,
    "c": 0.11789,
    "h": 104.7
  },
  "luminance": 0.25205
}

Semantic roles & 50–950 ramp

primary
#948C28
secondary
#5E64BA
accent
#52E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948C28

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

Preview Lab → · Contrast checker → · Palette generator →

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