#AFB23D#AFB23D

#AFB23D is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.137 H 110.7°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFB23D
RGBrgb(175, 178, 61)
HSLhsl(62, 49%, 47%)
HSVhsv(62, 66%, 70%)
CMYKcmyk(1.7%, 0%, 65.7%, 30.2%)
CIE-LABlab(70.38, -15.86, 57.01)
CIE-LCHlch(70.38, 59.18, 105.54°)
OKLaboklab(73.92% -0.0487 0.1285)
OKLCHoklch(73.92% 0.137 110.7)
XYZxyz(34.4430, 41.2926, 10.5699)
Luminance0.4129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB23D #403DB2
analogous
#B27A3D #AFB23D #75B23D
triadic
#AFB23D #3DAFB2 #B23DAF
tetradic
#AFB23D #3DB27A #403DB2 #B23D75
square
#AFB23D #3DB27A #403DB2 #B23D75
split-complementary
#AFB23D #3D75B2 #7A3DB2
monochromatic
#55571E #82842D #AFB23D #C7C963 #D7D990

Accessibility & contrast

On white

2.27
#AFB23D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#AFB23D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB23D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB23D#FFFFFF#000000##000000
##AFB23D1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA2D
Deuteranopia (green-blind)
#C0AE45
Tritanopia (blue-blind)
#BBA79A
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb23d;
/* rgb */ color: rgb(175, 178, 61);
/* oklch */ color: oklch(73.9% 0.137 110.7);
Tailwind
colors: {
  custom: {
    50: '#cac879',
    500: '#afb23d',
    950: '#000000',
  },
}
SCSS
$custom: #afb23d;
$custom-light: #cac879;
$custom-dark: #000000;
JSON
{
  "hex": "#afb23d",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 61
  },
  "hsl": {
    "h": 61.538,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.7392,
    "c": 0.13743,
    "h": 110.7
  },
  "luminance": 0.41292
}

Semantic roles & 50–950 ramp

primary
#AFB23D
secondary
#8887C4
accent
#4FD953
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB23D

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

Preview Lab → · Contrast checker → · Palette generator →

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