#AFB534#AFB534

#AFB534 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.5% C 0.147 H 112.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#AFB534
RGBrgb(175, 181, 52)
HSLhsl(63, 55%, 46%)
HSVhsv(63, 71%, 71%)
CMYKcmyk(3.3%, 0%, 71.3%, 29%)
CIE-LABlab(71.15, -17.88, 61.25)
CIE-LCHlch(71.15, 63.81, 106.27°)
OKLaboklab(74.52% -0.0552 0.1359)
OKLCHoklch(74.52% 0.147 112.1)
XYZxyz(34.8240, 42.4105, 9.5997)
Luminance0.4241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB534 #3A34B5
analogous
#B57A34 #AFB534 #6EB534
triadic
#AFB534 #34AFB5 #B534AF
tetradic
#AFB534 #34B57A #3A34B5 #B5346E
square
#AFB534 #34B57A #3A34B5 #B5346E
split-complementary
#AFB534 #346EB5 #7A34B5
monochromatic
#535619 #818526 #AFB534 #C9CF57 #D9DC87

Accessibility & contrast

On white

2.21
#AFB534 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#AFB534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB534
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB534#FFFFFF#000000##000000
##AFB5341.002.219.489.48
#FFFFFF2.211.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD1D
Deuteranopia (green-blind)
#C3B03E
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb534;
/* rgb */ color: rgb(175, 181, 52);
/* oklch */ color: oklch(74.5% 0.147 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb74',
    500: '#afb534',
    950: '#000000',
  },
}
SCSS
$custom: #afb534;
$custom-light: #cacb74;
$custom-dark: #000000;
JSON
{
  "hex": "#afb534",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 52
  },
  "hsl": {
    "h": 62.791,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74518,
    "c": 0.14675,
    "h": 112.1
  },
  "luminance": 0.4241
}

Semantic roles & 50–950 ramp

primary
#AFB534
secondary
#827FC6
accent
#49DF50
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB534

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

Preview Lab → · Contrast checker → · Palette generator →

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