#666227#666227

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

Color values

HEX#666227
RGBrgb(102, 98, 39)
HSLhsl(56, 45%, 28%)
HSVhsv(56, 62%, 40%)
CMYKcmyk(0%, 3.9%, 61.8%, 60%)
CIE-LABlab(40.75, -6.89, 33.41)
CIE-LCHlch(40.75, 34.11, 101.65°)
OKLaboklab(48.68% -0.0212 0.0771)
OKLCHoklch(48.68% 0.08 105.4)
XYZxyz(10.2137, 11.7070, 3.6407)
Luminance0.1171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#666227 #272B66
analogous
#664227 #666227 #4B6627
triadic
#666227 #276662 #622766
tetradic
#666227 #276642 #272B66 #66274B
square
#666227 #276642 #272B66 #66274B
split-complementary
#666227 #274B66 #422766
monochromatic
#161508 #3A3716 #666227 #928D38 #BBB44D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##666227#FFFFFF#000000##FFFFFF
##6662271.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)
#6A5F21
Deuteranopia (green-blind)
#6C612A
Tritanopia (blue-blind)
#6D5C55
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #666227;
/* rgb */ color: rgb(102, 98, 39);
/* oklch */ color: oklch(48.7% 0.080 105.4);
Tailwind
colors: {
  custom: {
    50: '#948e64',
    500: '#666227',
    950: '#000000',
  },
}
SCSS
$custom: #666227;
$custom-light: #948e64;
$custom-dark: #000000;
JSON
{
  "hex": "#666227",
  "rgb": {
    "r": 102,
    "g": 98,
    "b": 39
  },
  "hsl": {
    "h": 56.19,
    "s": 44.681,
    "l": 27.647
  },
  "oklch": {
    "l": 0.48682,
    "c": 0.07998,
    "h": 105.4
  },
  "luminance": 0.11707
}

Semantic roles & 50–950 ramp

primary
#666227
secondary
#505599
accent
#5CD453
background
#F9F8F6
surface
#F2F0EB
border
#CCCBC6
text
#0D0C05
muted
#7E7D7A

Preview Lab

Preview with #666227

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

Preview Lab → · Contrast checker → · Palette generator →

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