#AFB034#AFB034

#AFB034 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.4% C 0.142 H 109.9°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#AFB034
RGBrgb(175, 176, 52)
HSLhsl(60, 54%, 45%)
HSVhsv(60, 70%, 69%)
CMYKcmyk(0.6%, 0%, 70.5%, 31%)
CIE-LABlab(69.76, -15.34, 59.89)
CIE-LCHlch(69.76, 61.83, 104.37°)
OKLaboklab(73.41% -0.0481 0.1331)
OKLCHoklch(73.41% 0.142 109.9)
XYZxyz(33.8255, 40.4135, 9.2669)
Luminance0.4041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB034 #3534B0
analogous
#B07334 #AFB034 #71B034
triadic
#AFB034 #34AFB0 #B034AF
tetradic
#AFB034 #34B073 #3534B0 #B03471
square
#AFB034 #34B073 #3534B0 #B03471
split-complementary
#AFB034 #3471B0 #7334B0
monochromatic
#515218 #808126 #AFB034 #CCCD55 #DADB84

Accessibility & contrast

On white

2.31
#AFB034 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.08
#AFB034 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB034
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB034#FFFFFF#000000##000000
##AFB0341.002.319.089.08
#FFFFFF2.311.0021.0021.00
#0000009.0821.001.001.00
##0000009.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA81F
Deuteranopia (green-blind)
#BFAC3D
Tritanopia (blue-blind)
#BBA598
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afb034;
/* rgb */ color: rgb(175, 176, 52);
/* oklch */ color: oklch(73.4% 0.142 109.9);
Tailwind
colors: {
  custom: {
    50: '#cac774',
    500: '#afb034',
    950: '#000000',
  },
}
SCSS
$custom: #afb034;
$custom-light: #cac774;
$custom-dark: #000000;
JSON
{
  "hex": "#afb034",
  "rgb": {
    "r": 175,
    "g": 176,
    "b": 52
  },
  "hsl": {
    "h": 60.484,
    "s": 54.386,
    "l": 44.706
  },
  "oklch": {
    "l": 0.73406,
    "c": 0.14153,
    "h": 109.9
  },
  "luminance": 0.40413
}

Semantic roles & 50–950 ramp

primary
#AFB034
secondary
#7C7CC4
accent
#4ADE4B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB034

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

Preview Lab → · Contrast checker → · Palette generator →

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