#A7B628#A7B628

#A7B628 is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.0% C 0.157 H 115.8°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#A7B628
RGBrgb(167, 182, 40)
HSLhsl(66, 64%, 44%)
HSVhsv(66, 78%, 71%)
CMYKcmyk(8.2%, 0%, 78%, 28.6%)
CIE-LABlab(70.75, -22.33, 64.63)
CIE-LCHlch(70.75, 68.38, 109.06°)
OKLaboklab(74.02% -0.0682 0.1413)
OKLCHoklch(74.02% 0.157 115.8)
XYZxyz(33.0482, 41.8251, 8.3392)
Luminance0.4183 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B628 #3728B6
analogous
#B67E28 #A7B628 #60B628
triadic
#A7B628 #28A7B6 #B628A7
tetradic
#A7B628 #28B67E #3728B6 #B62860
square
#A7B628 #28B67E #3728B6 #B62860
split-complementary
#A7B628 #2860B6 #7E28B6
monochromatic
#4B5212 #79841D #A7B628 #C7D645 #D6E177

Accessibility & contrast

On white

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

On black

9.37
#A7B628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B628
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B628#FFFFFF#000000##000000
##A7B6281.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7b628;
/* rgb */ color: rgb(167, 182, 40);
/* oklch */ color: oklch(74.0% 0.157 115.8);
Tailwind
colors: {
  custom: {
    50: '#c5cb6f',
    500: '#a7b628',
    950: '#000000',
  },
}
SCSS
$custom: #a7b628;
$custom-light: #c5cb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b628",
  "rgb": {
    "r": 167,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 66.338,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.74021,
    "c": 0.15688,
    "h": 115.8
  },
  "luminance": 0.41825
}

Semantic roles & 50–950 ramp

primary
#A7B628
secondary
#7A71C9
accent
#41E752
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B628

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

Preview Lab → · Contrast checker → · Palette generator →

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