#A6B228#A6B228

#A6B228 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.0% C 0.153 H 114.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#A6B228
RGBrgb(166, 178, 40)
HSLhsl(65, 63%, 43%)
HSVhsv(65, 78%, 70%)
CMYKcmyk(6.7%, 0%, 77.5%, 30.2%)
CIE-LABlab(69.54, -20.77, 63.51)
CIE-LCHlch(69.54, 66.82, 108.11°)
OKLaboklab(73.03% -0.0638 0.1389)
OKLCHoklch(73.03% 0.153 114.7)
XYZxyz(32.0302, 40.1016, 8.0601)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B228 #3428B2
analogous
#B27928 #A6B228 #61B228
triadic
#A6B228 #28A6B2 #B228A6
tetradic
#A6B228 #28B279 #3428B2 #B22861
square
#A6B228 #28B279 #3428B2 #B22861
split-complementary
#A6B228 #2861B2 #7928B2
monochromatic
#494E12 #77801D #A6B228 #C8D543 #D7E075

Accessibility & contrast

On white

2.33
#A6B228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#A6B228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B228
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B228#FFFFFF#000000##000000
##A6B2281.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAB35
Tritanopia (blue-blind)
#B1A798
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b228;
/* rgb */ color: rgb(166, 178, 40);
/* oklch */ color: oklch(73.0% 0.153 114.7);
Tailwind
colors: {
  custom: {
    50: '#c4c86e',
    500: '#a6b228',
    950: '#000000',
  },
}
SCSS
$custom: #a6b228;
$custom-light: #c4c86e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b228",
  "rgb": {
    "r": 166,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 65.217,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.73032,
    "c": 0.15289,
    "h": 114.7
  },
  "luminance": 0.40101
}

Semantic roles & 50–950 ramp

primary
#A6B228
secondary
#766FC7
accent
#41E650
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B228

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

Preview Lab → · Contrast checker → · Palette generator →

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