#A7A231#A7A231

#A7A231 is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.131 H 106.8°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#A7A231
RGBrgb(167, 162, 49)
HSLhsl(57, 55%, 42%)
HSVhsv(57, 71%, 65%)
CMYKcmyk(0%, 3%, 70.7%, 34.5%)
CIE-LABlab(65.18, -11.73, 56.30)
CIE-LCHlch(65.18, 57.51, 101.77°)
OKLaboklab(69.58% -0.0379 0.1252)
OKLCHoklch(69.58% 0.131 106.8)
XYZxyz(29.4122, 34.2789, 7.9723)
Luminance0.3428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A231 #3136A7
analogous
#A76731 #A7A231 #71A731
triadic
#A7A231 #31A7A2 #A231A7
tetradic
#A7A231 #31A767 #3136A7 #A73171
square
#A7A231 #31A767 #3136A7 #A73171
split-complementary
#A7A231 #3171A7 #6731A7
monochromatic
#484615 #787423 #A7A231 #CAC54B #D8D47A

Accessibility & contrast

On white

2.67
#A7A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#A7A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A231
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A231#FFFFFF#000000##000000
##A7A2311.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B2A039
Tritanopia (blue-blind)
#B3978C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a7a231;
/* rgb */ color: rgb(167, 162, 49);
/* oklch */ color: oklch(69.6% 0.131 106.8);
Tailwind
colors: {
  custom: {
    50: '#c4bd71',
    500: '#a7a231',
    950: '#000000',
  },
}
SCSS
$custom: #a7a231;
$custom-light: #c4bd71;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a231",
  "rgb": {
    "r": 167,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 57.458,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.69583,
    "c": 0.13084,
    "h": 106.8
  },
  "luminance": 0.34278
}

Semantic roles & 50–950 ramp

primary
#A7A231
secondary
#7377C1
accent
#50DE4A
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A7A231

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

Preview Lab → · Contrast checker → · Palette generator →

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