#A7B526#A7B526

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

Color values

HEX#A7B526
RGBrgb(167, 181, 38)
HSLhsl(66, 65%, 43%)
HSVhsv(66, 79%, 71%)
CMYKcmyk(7.7%, 0%, 79%, 29%)
CIE-LABlab(70.46, -21.91, 64.96)
CIE-LCHlch(70.46, 68.56, 108.64°)
OKLaboklab(73.78% -0.0672 0.1416)
OKLCHoklch(73.78% 0.157 115.4)
XYZxyz(32.8110, 41.4037, 8.0966)
Luminance0.4140 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7B526 #3426B5
analogous
#B57B26 #A7B526 #5FB526
triadic
#A7B526 #26A7B5 #B526A7
tetradic
#A7B526 #26B57B #3426B5 #B5265F
square
#A7B526 #26B57B #3426B5 #B5265F
split-complementary
#A7B526 #265FB5 #7B26B5
monochromatic
#4A5011 #78821B #A7B526 #C8D741 #D7E274

Accessibility & contrast

On white

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

On black

9.28
#A7B526 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7B526
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7B526#FFFFFF#000000##000000
##A7B5261.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C1AD34
Tritanopia (blue-blind)
#B2AA9B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #a7b526;
/* rgb */ color: rgb(167, 181, 38);
/* oklch */ color: oklch(73.8% 0.157 115.4);
Tailwind
colors: {
  custom: {
    50: '#c5cb6e',
    500: '#a7b526',
    950: '#000000',
  },
}
SCSS
$custom: #a7b526;
$custom-light: #c5cb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a7b526",
  "rgb": {
    "r": 167,
    "g": 181,
    "b": 38
  },
  "hsl": {
    "h": 65.874,
    "s": 65.297,
    "l": 42.941
  },
  "oklch": {
    "l": 0.73783,
    "c": 0.15676,
    "h": 115.4
  },
  "luminance": 0.41403
}

Semantic roles & 50–950 ramp

primary
#A7B526
secondary
#776EC9
accent
#40E850
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A7B526

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

Preview Lab → · Contrast checker → · Palette generator →

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