#AFB539#AFB539

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

Color values

HEX#AFB539
RGBrgb(175, 181, 57)
HSLhsl(63, 52%, 47%)
HSVhsv(63, 69%, 71%)
CMYKcmyk(3.3%, 0%, 68.5%, 29%)
CIE-LABlab(71.19, -17.61, 59.41)
CIE-LCHlch(71.19, 61.97, 106.51°)
OKLaboklab(74.55% -0.054 0.1329)
OKLCHoklch(74.55% 0.143 112.1)
XYZxyz(34.9426, 42.4579, 10.2246)
Luminance0.4246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB539 #3F39B5
analogous
#B57D39 #AFB539 #71B539
triadic
#AFB539 #39AFB5 #B539AF
tetradic
#AFB539 #39B57D #3F39B5 #B53971
square
#AFB539 #39B57D #3F39B5 #B53971
split-complementary
#AFB539 #3971B5 #7D39B5
monochromatic
#55581C #82862A #AFB539 #C7CD5F #D7DB8D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB539#FFFFFF#000000##000000
##AFB5391.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)
#C3AD26
Deuteranopia (green-blind)
#C3B042
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb539;
/* rgb */ color: rgb(175, 181, 57);
/* oklch */ color: oklch(74.6% 0.143 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb77',
    500: '#afb539',
    950: '#000000',
  },
}
SCSS
$custom: #afb539;
$custom-light: #cacb77;
$custom-dark: #000000;
JSON
{
  "hex": "#afb539",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 57
  },
  "hsl": {
    "h": 62.903,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.74554,
    "c": 0.14349,
    "h": 112.1
  },
  "luminance": 0.42457
}

Semantic roles & 50–950 ramp

primary
#AFB539
secondary
#8784C6
accent
#4CDC53
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB539

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

Preview Lab → · Contrast checker → · Palette generator →

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