#A6B628#A6B628

#A6B628 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 73.9% C 0.157 H 116.2°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#A6B628
RGBrgb(166, 182, 40)
HSLhsl(67, 64%, 44%)
HSVhsv(67, 78%, 71%)
CMYKcmyk(8.8%, 0%, 78%, 28.6%)
CIE-LABlab(70.68, -22.75, 64.54)
CIE-LCHlch(70.68, 68.43, 109.42°)
OKLaboklab(73.94% -0.0693 0.1411)
OKLCHoklch(73.94% 0.157 116.2)
XYZxyz(32.8377, 41.7166, 8.3293)
Luminance0.4172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B628 #3828B6
analogous
#B67F28 #A6B628 #5FB628
triadic
#A6B628 #28A6B6 #B628A6
tetradic
#A6B628 #28B67F #3828B6 #B6285F
square
#A6B628 #28B67F #3828B6 #B6285F
split-complementary
#A6B628 #285FB6 #7F28B6
monochromatic
#4A5212 #78841D #A6B628 #C6D645 #D5E177

Accessibility & contrast

On white

2.25
#A6B628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#A6B628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B628
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B628#FFFFFF#000000##000000
##A6B6281.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#B1AB9C
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #a6b628;
/* rgb */ color: rgb(166, 182, 40);
/* oklch */ color: oklch(73.9% 0.157 116.2);
Tailwind
colors: {
  custom: {
    50: '#c4cb6f',
    500: '#a6b628',
    950: '#000000',
  },
}
SCSS
$custom: #a6b628;
$custom-light: #c4cb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b628",
  "rgb": {
    "r": 166,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 66.761,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73942,
    "c": 0.15722,
    "h": 116.2
  },
  "luminance": 0.41716
}

Semantic roles & 50–950 ramp

primary
#A6B628
secondary
#7B71C9
accent
#41E754
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B628

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

Preview Lab → · Contrast checker → · Palette generator →

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