#A7B831#A7B831

#A7B831 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.5% C 0.154 H 116.6°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#A7B831
RGBrgb(167, 184, 49)
HSLhsl(68, 58%, 46%)
HSVhsv(68, 73%, 72%)
CMYKcmyk(9.2%, 0%, 73.4%, 27.8%)
CIE-LABlab(71.36, -22.92, 62.30)
CIE-LCHlch(71.36, 66.38, 110.20°)
OKLaboklab(74.53% -0.0691 0.1379)
OKLCHoklch(74.53% 0.154 116.6)
XYZxyz(33.6321, 42.7187, 9.3789)
Luminance0.4272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B831 #4231B8
analogous
#B88631 #A7B831 #63B831
triadic
#A7B831 #31A7B8 #B831A7
tetradic
#A7B831 #31B886 #4231B8 #B83163
square
#A7B831 #31B886 #4231B8 #B83163
split-complementary
#A7B831 #3163B8 #8631B8
monochromatic
#4F5717 #7B8824 #A7B831 #C2D255 #D3DE85

Accessibility & contrast

On white

2.20
#A7B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#A7B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B831
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B831#FFFFFF#000000##000000
##A7B8311.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE15
Deuteranopia (green-blind)
#C3B03C
Tritanopia (blue-blind)
#B2AD9E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #a7b831;
/* rgb */ color: rgb(167, 184, 49);
/* oklch */ color: oklch(74.5% 0.154 116.6);
Tailwind
colors: {
  custom: {
    50: '#c5cd73',
    500: '#a7b831',
    950: '#000000',
  },
}
SCSS
$custom: #a7b831;
$custom-light: #c5cd73;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b831",
  "rgb": {
    "r": 167,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 67.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74529,
    "c": 0.15424,
    "h": 116.6
  },
  "luminance": 0.42718
}

Semantic roles & 50–950 ramp

primary
#A7B831
secondary
#867DC8
accent
#47E15A
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A7B831

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

Preview Lab → · Contrast checker → · Palette generator →

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