#A8B628#A8B628

#A8B628 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.1% C 0.157 H 115.4°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#A8B628
RGBrgb(168, 182, 40)
HSLhsl(66, 64%, 44%)
HSVhsv(66, 78%, 71%)
CMYKcmyk(7.7%, 0%, 78%, 28.6%)
CIE-LABlab(70.83, -21.91, 64.73)
CIE-LCHlch(70.83, 68.34, 108.70°)
OKLaboklab(74.1% -0.0671 0.1414)
OKLCHoklch(74.1% 0.157 115.4)
XYZxyz(33.2604, 41.9345, 8.3491)
Luminance0.4193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8B628 #3628B6
analogous
#B67D28 #A8B628 #61B628
triadic
#A8B628 #28A8B6 #B628A8
tetradic
#A8B628 #28B67D #3628B6 #B62861
square
#A8B628 #28B67D #3628B6 #B62861
split-complementary
#A8B628 #2861B6 #7D28B6
monochromatic
#4B5212 #7A841D #A8B628 #C8D645 #D7E177

Accessibility & contrast

On white

2.24
#A8B628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#A8B628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8B628
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8B628#FFFFFF#000000##000000
##A8B6281.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8b628;
/* rgb */ color: rgb(168, 182, 40);
/* oklch */ color: oklch(74.1% 0.157 115.4);
Tailwind
colors: {
  custom: {
    50: '#c6cb6f',
    500: '#a8b628',
    950: '#000000',
  },
}
SCSS
$custom: #a8b628;
$custom-light: #c6cb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a8b628",
  "rgb": {
    "r": 168,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 65.915,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74101,
    "c": 0.15655,
    "h": 115.4
  },
  "luminance": 0.41934
}

Semantic roles & 50–950 ramp

primary
#A8B628
secondary
#7A71C9
accent
#41E751
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A8B628

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

Preview Lab → · Contrast checker → · Palette generator →

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