#AFB536#AFB536

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

Color values

HEX#AFB536
RGBrgb(175, 181, 54)
HSLhsl(63, 54%, 46%)
HSVhsv(63, 70%, 71%)
CMYKcmyk(3.3%, 0%, 70.2%, 29%)
CIE-LABlab(71.17, -17.78, 60.53)
CIE-LCHlch(71.17, 63.08, 106.37°)
OKLaboklab(74.53% -0.0548 0.1348)
OKLCHoklch(74.53% 0.145 112.1)
XYZxyz(34.8700, 42.4289, 9.8420)
Luminance0.4243 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB536 #3C36B5
analogous
#B57B36 #AFB536 #6FB536
triadic
#AFB536 #36AFB5 #B536AF
tetradic
#AFB536 #36B57B #3C36B5 #B5366F
square
#AFB536 #36B57B #3C36B5 #B5366F
split-complementary
#AFB536 #366FB5 #7B36B5
monochromatic
#54571A #818628 #AFB536 #C8CE5A #D8DC89

Accessibility & contrast

On white

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

On black

9.49
#AFB536 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB536
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB536#FFFFFF#000000##000000
##AFB5361.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afb536;
/* rgb */ color: rgb(175, 181, 54);
/* oklch */ color: oklch(74.5% 0.145 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb75',
    500: '#afb536',
    950: '#000000',
  },
}
SCSS
$custom: #afb536;
$custom-light: #cacb75;
$custom-dark: #000000;
JSON
{
  "hex": "#afb536",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 54
  },
  "hsl": {
    "h": 62.835,
    "s": 54.043,
    "l": 46.078
  },
  "oklch": {
    "l": 0.74532,
    "c": 0.14547,
    "h": 112.1
  },
  "luminance": 0.42428
}

Semantic roles & 50–950 ramp

primary
#AFB536
secondary
#8481C6
accent
#4ADD51
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB536

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

Preview Lab → · Contrast checker → · Palette generator →

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