#666228#666228

#666228 is a mid, moderate yellow. Relative luminance 0.117; OKLCH L 48.7% C 0.079 H 105.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#666228
RGBrgb(102, 98, 40)
HSLhsl(56, 44%, 28%)
HSVhsv(56, 61%, 40%)
CMYKcmyk(0%, 3.9%, 60.8%, 60%)
CIE-LABlab(40.76, -6.80, 32.91)
CIE-LCHlch(40.76, 33.60, 101.68°)
OKLaboklab(48.69% -0.0209 0.0762)
OKLCHoklch(48.69% 0.079 105.3)
XYZxyz(10.2305, 11.7137, 3.7291)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666228 #282C66
analogous
#664328 #666228 #4B6628
triadic
#666228 #286662 #622866
tetradic
#666228 #286643 #282C66 #66284B
square
#666228 #286643 #282C66 #66284B
split-complementary
#666228 #284B66 #432866
monochromatic
#161509 #3A3817 #666228 #928C39 #BAB34F

Accessibility & contrast

On white

6.28
#666228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#666228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #666228
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##666228#FFFFFF#000000##FFFFFF
##6662281.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5F22
Deuteranopia (green-blind)
#6C612B
Tritanopia (blue-blind)
#6D5C55
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #666228;
/* rgb */ color: rgb(102, 98, 40);
/* oklch */ color: oklch(48.7% 0.079 105.3);
Tailwind
colors: {
  custom: {
    50: '#938e64',
    500: '#666228',
    950: '#000000',
  },
}
SCSS
$custom: #666228;
$custom-light: #938e64;
$custom-dark: #000000;
JSON
{
  "hex": "#666228",
  "rgb": {
    "r": 102,
    "g": 98,
    "b": 40
  },
  "hsl": {
    "h": 56.129,
    "s": 43.662,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48694,
    "c": 0.07898,
    "h": 105.3
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#666228
secondary
#515699
accent
#5DD354
background
#F9F8F6
surface
#F2F0EB
border
#CCCBC6
text
#0D0C05
muted
#7E7D7A

Preview Lab

Preview with #666228

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

Preview Lab → · Contrast checker → · Palette generator →

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