#A7B531#A7B531

#A7B531 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 73.8% C 0.151 H 115.5°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#A7B531
RGBrgb(167, 181, 49)
HSLhsl(66, 57%, 45%)
HSVhsv(66, 73%, 71%)
CMYKcmyk(7.7%, 0%, 72.9%, 29%)
CIE-LABlab(70.51, -21.43, 61.49)
CIE-LCHlch(70.51, 65.11, 109.22°)
OKLaboklab(73.85% -0.065 0.1362)
OKLCHoklch(73.85% 0.151 115.5)
XYZxyz(33.0155, 41.4855, 9.1734)
Luminance0.4148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B531 #3F31B5
analogous
#B58131 #A7B531 #65B531
triadic
#A7B531 #31A7B5 #B531A7
tetradic
#A7B531 #31B581 #3F31B5 #B53165
square
#A7B531 #31B581 #3F31B5 #B53165
split-complementary
#A7B531 #3165B5 #8131B5
monochromatic
#4E5517 #7B8524 #A7B531 #C3D053 #D4DD83

Accessibility & contrast

On white

2.26
#A7B531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#A7B531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B531
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B531#FFFFFF#000000##000000
##A7B5311.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C1AD3C
Tritanopia (blue-blind)
#B2AA9C
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a7b531;
/* rgb */ color: rgb(167, 181, 49);
/* oklch */ color: oklch(73.8% 0.151 115.5);
Tailwind
colors: {
  custom: {
    50: '#c5cb73',
    500: '#a7b531',
    950: '#000000',
  },
}
SCSS
$custom: #a7b531;
$custom-light: #c5cb73;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b531",
  "rgb": {
    "r": 167,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 66.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.73847,
    "c": 0.15088,
    "h": 115.5
  },
  "luminance": 0.41485
}

Semantic roles & 50–950 ramp

primary
#A7B531
secondary
#837BC7
accent
#47E157
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A7B531

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

Preview Lab → · Contrast checker → · Palette generator →

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