#948828#948828

#948828 is a mid, moderate yellow. Relative luminance 0.241; OKLCH L 62.0% C 0.114 H 102.0°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#948828
RGBrgb(148, 136, 40)
HSLhsl(53, 57%, 37%)
HSVhsv(53, 73%, 58%)
CMYKcmyk(0%, 8.1%, 73%, 42%)
CIE-LABlab(56.15, -6.79, 50.35)
CIE-LCHlch(56.15, 50.81, 97.68°)
OKLaboklab(61.96% -0.0238 0.1117)
OKLCHoklch(61.96% 0.114 102)
XYZxyz(21.4009, 24.0583, 5.5235)
Luminance0.2406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#948828 #283494
analogous
#945228 #948828 #6A9428
triadic
#948828 #289488 #882894
tetradic
#948828 #289452 #283494 #94286A
square
#948828 #289452 #283494 #94286A
split-complementary
#948828 #286A94 #522894
monochromatic
#342F0E #645C1B #948828 #C4B435 #D5C862

Accessibility & contrast

On white

3.61
#948828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#948828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #948828
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##948828#FFFFFF#000000##000000
##9488281.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958418
Deuteranopia (green-blind)
#98892E
Tritanopia (blue-blind)
#A07E75
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #948828;
/* rgb */ color: rgb(148, 136, 40);
/* oklch */ color: oklch(62.0% 0.114 102.0);
Tailwind
colors: {
  custom: {
    50: '#b7aa69',
    500: '#948828',
    950: '#000000',
  },
}
SCSS
$custom: #948828;
$custom-light: #b7aa69;
$custom-dark: #000000;
JSON
{
  "hex": "#948828",
  "rgb": {
    "r": 148,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 53.333,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61963,
    "c": 0.11421,
    "h": 102
  },
  "luminance": 0.24057
}

Semantic roles & 50–950 ramp

primary
#948828
secondary
#5E68BA
accent
#58E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121007
muted
#817F7A

Preview Lab

Preview with #948828

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

Preview Lab → · Contrast checker → · Palette generator →

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