#AFB535#AFB535

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

Color values

HEX#AFB535
RGBrgb(175, 181, 53)
HSLhsl(63, 55%, 46%)
HSVhsv(63, 71%, 71%)
CMYKcmyk(3.3%, 0%, 70.7%, 29%)
CIE-LABlab(71.16, -17.83, 60.89)
CIE-LCHlch(71.16, 63.45, 106.32°)
OKLaboklab(74.52% -0.055 0.1354)
OKLCHoklch(74.52% 0.146 112.1)
XYZxyz(34.8468, 42.4196, 9.7196)
Luminance0.4242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB535 #3B35B5
analogous
#B57B35 #AFB535 #6FB535
triadic
#AFB535 #35AFB5 #B535AF
tetradic
#AFB535 #35B57B #3B35B5 #B5356F
square
#AFB535 #35B57B #3B35B5 #B5356F
split-complementary
#AFB535 #356FB5 #7B35B5
monochromatic
#535619 #818627 #AFB535 #C9CE59 #D8DC88

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB535#FFFFFF#000000##000000
##AFB5351.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)
#C3AD1F
Deuteranopia (green-blind)
#C3B03F
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb535;
/* rgb */ color: rgb(175, 181, 53);
/* oklch */ color: oklch(74.5% 0.146 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb75',
    500: '#afb535',
    950: '#000000',
  },
}
SCSS
$custom: #afb535;
$custom-light: #cacb75;
$custom-dark: #000000;
JSON
{
  "hex": "#afb535",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 53
  },
  "hsl": {
    "h": 62.813,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.74525,
    "c": 0.14611,
    "h": 112.1
  },
  "luminance": 0.42419
}

Semantic roles & 50–950 ramp

primary
#AFB535
secondary
#8380C6
accent
#4ADE51
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB535

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

Preview Lab → · Contrast checker → · Palette generator →

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